Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix jest test runner #371

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions detox/local-cli/detox-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ const program = require('commander');
const path = require('path');
const cp = require('child_process');
program
.option('-r, --runner [runner]', 'Test runner (supports mocha and jest)')
.option('-o, --runner-config [config]', 'Test runner config file', 'mocha.opts')
.option('-l, --loglevel [value]', 'info, debug, verbose, silly, wss')
.option('-r, --runner [runner]', 'Test runner (supports mocha and jest)', '')
.option('-o, --runner-config [config]', 'Test runner config file', 'mocha.opts', '')
.option('-l, --loglevel [value]', 'info, debug, verbose, silly, wss', '')
.option('-c, --configuration [device configuration]', 'Select a device configuration from your defined configurations,'
+ 'if not supplied, and there\'s only one configuration, detox will default to it')
+ 'if not supplied, and there\'s only one configuration, detox will default to it', '')
.option('-r, --reuse', 'Reuse existing installed app (do not delete and re-install) for a faster run.', false)
.option('-u, --cleanup', 'Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue', false)
.option('-d, --debug-synchronization [value]',
'When an action/expectation takes a significant amount of time use this option to print device synchronization status. '
+ 'The status will be printed if the action takes more than [value]ms to complete')
+ 'The status will be printed if the action takes more than [value]ms to complete', '')
.option('-a, --artifacts-location [path]', 'Artifacts destination path (currently will contain only logs). '
+ 'If the destination already exists, it will be removed first')
+ 'If the destination already exists, it will be removed first', '')
.parse(process.argv);

const config = require(path.join(process.cwd(), 'package.json')).detox;
Expand Down Expand Up @@ -65,8 +65,8 @@ function runJest() {
env: Object.assign({}, process.env, {
configuration: program.configuration,
loglevel: program.loglevel,
cleanup: program.cleanup,
reuse: program.reuse,
cleanup: program.cleanup || '',
reuse: program.reuse || '',
debugSynchronization: program.debugSynchronization,
artifactsLocation: program.artifactsLocation
})
Expand Down