From 518dd702a2dc2e66feb37ff5ab051f062dc9f05d Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Tue, 6 Aug 2013 21:10:46 +0300 Subject: [PATCH] list all tests in index.html --- tests/selenium.js | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/tests/selenium.js b/tests/selenium.js index 059b80c..c1b0d0b 100644 --- a/tests/selenium.js +++ b/tests/selenium.js @@ -22,6 +22,13 @@ }; var server = app.listen(port); + + app.use('/index.html', function(req, res){ + res.send(""); + }); + app.use('/', express.static(__dirname + "/../")); function mapStat(item) { @@ -301,25 +308,14 @@ var tests = [], outputImages = false, - results = {}; + results = {}, + testStream = getTests("tests/cases"); - exports.tests = function() { - var testStream = getTests("tests/cases"); - - testStream.onValue(function(test) { - tests.push(test); - }); - - testStream.onEnd(runWebDriver); - }; - - - /* - if (outputImages) { - resultStream.flatMap(createImages).onValue(function(test){ - console.log(test.data.testCase, "screenshots created"); - }); - } - */ + testStream.onValue(function(test) { + tests.push(test); + }); + exports.tests = function() { + testStream.onEnd(runWebDriver); + }; })(); \ No newline at end of file