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

CLI: add -f option to run specific test file #616

Merged
merged 2 commits into from
Mar 14, 2018

Conversation

jeremyeaton89
Copy link
Contributor

Agnostic approach to running a specific test file.

former PR: #502

@jeremyeaton89
Copy link
Contributor Author

@Cederman had reviewed the original PR

.parse(process.argv);

const config = require(path.join(process.cwd(), 'package.json')).detox;

const testFolder = getConfigFor('specs', 'e2e');
const testFolder = getConfigFor('file', 'specs', 'e2e');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getConfigFor has two params, this puts file as key, pushing specs as default value, ignoring e2e altogether. Am I missing something ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can be a good idea to extend getConfigFor to support multiple keys

Copy link
Member

@rotemmiz rotemmiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please read the above notes

and use “fallback” instead of “defaults” because it’s singular and not a keyword
@jeremyeaton89
Copy link
Contributor Author

is the test failure on my end? https://travis-ci.org/wix/detox/jobs/352531838

@rotemmiz rotemmiz merged commit 8ac1fd9 into wix:master Mar 14, 2018
@rotemmiz rotemmiz changed the title add -f option to run specific test file CLI: add -f option to run specific test file Mar 26, 2018
@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants