From ff30ba62ba694658d1575b0cf3a0fbf3d5e00d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Thu, 28 Jan 2016 23:23:56 +0100 Subject: [PATCH] Add order for tests --- package.json | 2 +- test/all.js | 11 +++++++++++ test/{1-config.js => config.js} | 0 test/{3-glossary.js => glossary.js} | 0 test/{4-langs.js => langs.js} | 0 test/output-json.js | 6 ++++++ test/{6-parse.js => parse.js} | 0 test/{2-readme.js => readme.js} | 0 test/{5-summary.js => summary.js} | 0 9 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 test/all.js rename test/{1-config.js => config.js} (100%) rename test/{3-glossary.js => glossary.js} (100%) rename test/{4-langs.js => langs.js} (100%) create mode 100644 test/output-json.js rename test/{6-parse.js => parse.js} (100%) rename test/{2-readme.js => readme.js} (100%) rename test/{5-summary.js => summary.js} (100%) diff --git a/package.json b/package.json index 7129e7392..f5377d131 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "gitbook-markdown-css": "1.0.1" }, "scripts": { - "test": "node_modules/.bin/mocha --reporter spec --timeout 15000" + "test": "node_modules/.bin/mocha --reporter spec --timeout 15000 ./test/all.js" }, "repository": { "type": "git", diff --git a/test/all.js b/test/all.js new file mode 100644 index 000000000..0c1debacb --- /dev/null +++ b/test/all.js @@ -0,0 +1,11 @@ + +// Parsing +require('./config'); +require('./readme'); +require('./summary'); +require('./glossary'); +require('./langs'); +require('./parse'); + +// Output +require('./output-json'); diff --git a/test/1-config.js b/test/config.js similarity index 100% rename from test/1-config.js rename to test/config.js diff --git a/test/3-glossary.js b/test/glossary.js similarity index 100% rename from test/3-glossary.js rename to test/glossary.js diff --git a/test/4-langs.js b/test/langs.js similarity index 100% rename from test/4-langs.js rename to test/langs.js diff --git a/test/output-json.js b/test/output-json.js new file mode 100644 index 000000000..8d276c627 --- /dev/null +++ b/test/output-json.js @@ -0,0 +1,6 @@ +var mock = require('./mock'); + +describe('JSON Output', function() { + +}); + diff --git a/test/6-parse.js b/test/parse.js similarity index 100% rename from test/6-parse.js rename to test/parse.js diff --git a/test/2-readme.js b/test/readme.js similarity index 100% rename from test/2-readme.js rename to test/readme.js diff --git a/test/5-summary.js b/test/summary.js similarity index 100% rename from test/5-summary.js rename to test/summary.js