Force the mocha tests order
authorChocobozzz <florian.bigard@gmail.com>
Tue, 24 Nov 2015 08:13:42 +0000 (09:13 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Tue, 24 Nov 2015 08:13:42 +0000 (09:13 +0100)
package.json
test/api/index.js [new file with mode: 0644]
test/index.js [new file with mode: 0644]

index 3c4934d29f0334ad596281094f58d994095314fe..0cdd11afedbd6f9054ab0a8f95e72bde29c5a4ad 100644 (file)
@@ -18,7 +18,7 @@
   },
   "scripts": {
     "start": "grunt dev",
-    "test": "grunt build && standard && mocha test/api"
+    "test": "grunt build && standard && mocha test"
   },
   "dependencies": {
     "async": "^1.2.1",
@@ -74,7 +74,8 @@
       "afterEach",
       "before",
       "beforeEach",
-      "describe"
+      "describe",
+      "include"
     ]
   }
 }
diff --git a/test/api/index.js b/test/api/index.js
new file mode 100644 (file)
index 0000000..3bdcdae
--- /dev/null
@@ -0,0 +1,10 @@
+;(function () {
+  'use strict'
+
+  // Order of the tests we want to execute
+  require('./checkParams')
+  require('./friendsBasic')
+  require('./singlePod')
+  require('./multiplePods')
+  require('./friendsAdvanced')
+})()
diff --git a/test/index.js b/test/index.js
new file mode 100644 (file)
index 0000000..ccebbfe
--- /dev/null
@@ -0,0 +1,6 @@
+;(function () {
+  'use strict'
+
+  // Order of the tests we want to execute
+  require('./api/')
+})()