aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-11-24 09:13:42 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-11-24 09:13:42 +0100
commit2dd5b570a6bb774eda2fb9b9ce7cffd0741eb0a2 (patch)
tree47d296cc1fce467c79ebf89cd3ac09fb6198681a
parent288a1331267056128da02d1da5d47d6d0fb58d0d (diff)
downloadPeerTube-2dd5b570a6bb774eda2fb9b9ce7cffd0741eb0a2.tar.gz
PeerTube-2dd5b570a6bb774eda2fb9b9ce7cffd0741eb0a2.tar.zst
PeerTube-2dd5b570a6bb774eda2fb9b9ce7cffd0741eb0a2.zip
Force the mocha tests order
-rw-r--r--package.json5
-rw-r--r--test/api/index.js10
-rw-r--r--test/index.js6
3 files changed, 19 insertions, 2 deletions
diff --git a/package.json b/package.json
index 3c4934d29..0cdd11afe 100644
--- a/package.json
+++ b/package.json
@@ -18,7 +18,7 @@
18 }, 18 },
19 "scripts": { 19 "scripts": {
20 "start": "grunt dev", 20 "start": "grunt dev",
21 "test": "grunt build && standard && mocha test/api" 21 "test": "grunt build && standard && mocha test"
22 }, 22 },
23 "dependencies": { 23 "dependencies": {
24 "async": "^1.2.1", 24 "async": "^1.2.1",
@@ -74,7 +74,8 @@
74 "afterEach", 74 "afterEach",
75 "before", 75 "before",
76 "beforeEach", 76 "beforeEach",
77 "describe" 77 "describe",
78 "include"
78 ] 79 ]
79 } 80 }
80} 81}
diff --git a/test/api/index.js b/test/api/index.js
new file mode 100644
index 000000000..3bdcdae2d
--- /dev/null
+++ b/test/api/index.js
@@ -0,0 +1,10 @@
1;(function () {
2 'use strict'
3
4 // Order of the tests we want to execute
5 require('./checkParams')
6 require('./friendsBasic')
7 require('./singlePod')
8 require('./multiplePods')
9 require('./friendsAdvanced')
10})()
diff --git a/test/index.js b/test/index.js
new file mode 100644
index 000000000..ccebbfe51
--- /dev/null
+++ b/test/index.js
@@ -0,0 +1,6 @@
1;(function () {
2 'use strict'
3
4 // Order of the tests we want to execute
5 require('./api/')
6})()