From 0c2ba36945a9cb693700029be7be9b1c36ba1f83 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 29 Mar 2012 14:57:36 +0100 Subject: [PATCH] Added ability to save test results This makes it easy to update the test data --- tiddlywiki.js | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/tiddlywiki.js b/tiddlywiki.js index 1e7302e0a..5547b30bf 100644 --- a/tiddlywiki.js +++ b/tiddlywiki.js @@ -195,9 +195,10 @@ var commandLineSwitches = { } }, wikitest: { - args: {min: 1, max: 1}, + args: {min: 1, max: 2}, handler: function(args,callback) { var testdirectory = args[0], + saveResults = args[1] === "save", files = fs.readdirSync(testdirectory), titles = [], f,t,extname,basename; @@ -213,16 +214,25 @@ var commandLineSwitches = { } } for(t=0; t