Move unit tests to test/ folder

Move unit tests for client, master, and the lib to test/ and move plugin
unit tests to <plugin dir>/test.
This commit is contained in:
Hornwitser committed 2019-09-14 14:49:52 +02:00
1 parent 74c99b9e13
commit a63c341209
16 files changed
+18 -12

No files matched your search

+7 -1
View File
@@ -5,7 +5,7 @@
"repository": "https://github.com/clusterio/factorioClusterio",
"main": "master.js",
"scripts": {
"test": "mocha --exit --check-leaks -R spec \"./{,!(node_modules)/**/}*.spec.js\"",
"test": "mocha --exit --check-leaks -R spec --recursive test sharedPlugins/*/test",
"fast-test": "FAST_TEST=y npm test",
"cover": "nyc npm test",
"fast-cover": "FAST_TEST=y nyc npm test",
@@ -14,6 +14,12 @@
"install": "node lib/npmPostinstall.js",
"bundle-dependencies": "bundle-dependencies"
},
"nyc": {
"exclude": [
"test/**",
"sharedPlugins/*/test/**"
]
},
"keywords": [
"factorio"
],