diff --git a/.circleci/config.yml b/.circleci/config.yml index 3bd401d9..dedaf1f0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -83,10 +83,7 @@ aliases: # eslint - &eslint name: Lint Code - command: | - mkdir -p ~/reports - ./node_modules/.bin/eslint ./src/ --format junit --output-file ~/reports/eslint.xml - when: always + command: yarn run lint # flow - &validate-flow-declarations @@ -159,10 +156,6 @@ jobs: - run: *eslint - run: *validate-flow-declarations - run: *validate-ts-declarations - - store_test_results: - path: ~/reports - - store_artifacts: - path: ~/reports jet-test-ios: <<: *macos_defaults @@ -209,7 +202,7 @@ jobs: command: cd tests && yarn run build-ios - save-cache: *save-ios-build-cache - - run: mkdir ~/reports + - run: mkdir ~/detox-artifacts # Now Test \o/ - run: @@ -222,9 +215,9 @@ jobs: command: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js - store_test_results: - path: ~/reports + path: ~/detox-artifacts - store_artifacts: - path: ~/reports + path: ~/detox-artifacts # ------------------------- diff --git a/tests/e2e/init.js b/tests/e2e/init.js index ff362597..7c0bc7c4 100755 --- a/tests/e2e/init.js +++ b/tests/e2e/init.js @@ -1,12 +1,6 @@ const detox = require('detox'); const config = require('../package.json').detox; -if (process.env.CIRCLECI) { - config['runner-config'] = 'e2e/mocha.ci.opts'; -} else { - config['runner-config'] = 'e2e/mocha.local.opts'; -} - before(async () => { await detox.init(config); // needs to be called before any usage of firestore diff --git a/tests/e2e/mocha.local.opts b/tests/e2e/mocha.opts similarity index 76% rename from tests/e2e/mocha.local.opts rename to tests/e2e/mocha.opts index 240c1ee9..17ce0abc 100755 --- a/tests/e2e/mocha.local.opts +++ b/tests/e2e/mocha.opts @@ -1,7 +1,7 @@ --recursive --timeout 120000 ---reporter list ---slow 600 +--reporter spec +--slow 1000 --bail --exit --require jet/platform/node