mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Add a test edition and associated script
This commit is contained in:
parent
709e3eec14
commit
94c7a4fc39
3
editions/test/tiddlers/DefaultTiddlers.tid
Normal file
3
editions/test/tiddlers/DefaultTiddlers.tid
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
title: $:/DefaultTiddlers
|
||||||
|
|
||||||
|
HelloThere
|
5
editions/test/tiddlers/HelloThere.tid
Normal file
5
editions/test/tiddlers/HelloThere.tid
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
title: HelloThere
|
||||||
|
|
||||||
|
This is TiddlyWiki5's browser-based test runner. See the bottom of this page for the test results.
|
||||||
|
|
||||||
|
http://five.tiddlywiki.com/
|
21
editions/test/tiddlers/tests/test.js
Normal file
21
editions/test/tiddlers/tests/test.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*\
|
||||||
|
title: test.js
|
||||||
|
type: application/javascript
|
||||||
|
tags: [[$:/tags/test-spec]]
|
||||||
|
|
||||||
|
An example test specification
|
||||||
|
|
||||||
|
\*/
|
||||||
|
(function(){
|
||||||
|
|
||||||
|
/*jslint node: true, browser: true */
|
||||||
|
/*global $tw: false */
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
describe("WikiParser tests", function() {
|
||||||
|
it("contains spec with an expectation", function() {
|
||||||
|
expect(true).toBe(true);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
})();
|
5
editions/test/tiddlywiki.info
Normal file
5
editions/test/tiddlywiki.info
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"plugins": [
|
||||||
|
"tiddlywiki/jasmine"
|
||||||
|
]
|
||||||
|
}
|
16
test.sh
Executable file
16
test.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# test TiddlyWiki5
|
||||||
|
|
||||||
|
# create a temporary directory if it doesn't already exist
|
||||||
|
|
||||||
|
mkdir -p tmp
|
||||||
|
mkdir -p tmp/test
|
||||||
|
|
||||||
|
# build test.html
|
||||||
|
|
||||||
|
node ./tiddlywiki.js \
|
||||||
|
./editions/test \
|
||||||
|
--verbose \
|
||||||
|
--savetiddler $:/core/templates/tiddlywiki5.template.html tmp/test/index.html text/plain \
|
||||||
|
|| exit 1
|
Loading…
Reference in New Issue
Block a user