Skip to content

Commit

Permalink
Remove gulp command when running unit test
Browse files Browse the repository at this point in the history
Create test script for circle ci
Change junit file names for circle ci
  • Loading branch information
GiladShoham committed Aug 16, 2017
1 parent dd3c675 commit 9cb5b14
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 27 deletions.
6 changes: 4 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ dependencies:

test:
override:
- npm test
- npm run test-circle:
environment:
MOCHA_FILE: $CIRCLE_TEST_REPORTS/junit/unit-test-results.xml
- npm i -g
- npm run e2e-test-circle:
environment:
MOCHA_FILE: $CIRCLE_TEST_REPORTS/junit/test-results.xml
MOCHA_FILE: $CIRCLE_TEST_REPORTS/junit/e2e-test-results.xml

2 changes: 0 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ fs.readdirSync(tasksDir).forEach(filename => gulp.task(
require(path.join(__dirname, tasksDir, filename))
));

gulp.task('test', gulpsync.sync(['build-tests', 'test-runner']));
gulp.task('e2e-test', gulpsync.sync(['e2e-test-runner']));
gulp.task('default', done => runSequence('lint', 'test', 'clean', 'build', done));
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev-link": "node ./scripts/establish-dev-link.js $1",
"flow": "flow; test $? -eq 0 -o $? -eq 2",
"lint": "gulp lint && flow check",
"test": "gulp test",
"test": "mocha --compilers js:babel-core/register ./specs/**/*.spec.js",
"test-circle": "mocha --compilers js:babel-core/register --reporter mocha-circleci-reporter ./specs/**/*.spec.js",
"e2e-test": "mocha --compilers js:babel-core/register ./e2e/**/*.e2e.js",
"e2e-test-circle": "mocha --compilers js:babel-core/register --reporter mocha-circleci-reporter ./e2e/**/*.e2e.js",
"clean": "rm -rf dist",
Expand Down
15 changes: 0 additions & 15 deletions tasks/build-tests.js

This file was deleted.

7 changes: 0 additions & 7 deletions tasks/test-runner.js

This file was deleted.

0 comments on commit 9cb5b14

Please sign in to comment.