Browse Source

added setup spec for global tests configuration

sanex3339 8 years ago
parent
commit
8c8291f3a9
4 changed files with 3 additions and 3 deletions
  1. 1 1
      scripts/test-coveralls
  2. 1 1
      scripts/test-full
  3. 1 1
      scripts/test-mocha
  4. 0 0
      test/config/config.spec.ts

+ 1 - 1
scripts/test-coveralls

@@ -1,6 +1,6 @@
 #!/bin/bash
 
 npm run test:compile
-$(npm bin)/istanbul cover $(npm bin)/_mocha -- test-tmp/test/**/**.spec.js --report lcovonly
+$(npm bin)/istanbul cover $(npm bin)/_mocha -- $(find test-tmp/test -name '*.spec.js') --report lcovonly
 cat ./coverage/lcov.info | $(npm bin)/coveralls
 npm run test:removeTmpDir

+ 1 - 1
scripts/test-full

@@ -2,5 +2,5 @@
 
 npm run test:compile
 node test-tmp/test/dev/test.js
-$(npm bin)/istanbul cover $(npm bin)/_mocha -- test-tmp/test/**/**.spec.js
+$(npm bin)/istanbul cover $(npm bin)/_mocha -- $(find test-tmp/test -name '*.spec.js')
 npm run test:removeTmpDir

+ 1 - 1
scripts/test-mocha

@@ -1,5 +1,5 @@
 #!/bin/bash
 
 npm run test:compile
-$(npm bin)/mocha test-tmp/test/**/**.spec.js
+$(npm bin)/mocha $(find test-tmp/test -name '*.spec.js')
 npm run test:removeTmpDir

+ 0 - 0
test/config/setup.spec.ts → test/config/config.spec.ts