1
0
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:
Jeremy Ruston 2013-04-25 09:06:41 +01:00
parent 709e3eec14
commit 94c7a4fc39
5 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,3 @@
title: $:/DefaultTiddlers
HelloThere

View 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/

View 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);
});
});
})();

View File

@ -0,0 +1,5 @@
{
"plugins": [
"tiddlywiki/jasmine"
]
}

16
test.sh Executable file
View 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