-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
@Cederman had reviewed the original PR |
detox/local-cli/detox-test.js
Outdated
.parse(process.argv); | ||
|
||
const config = require(path.join(process.cwd(), 'package.json')).detox; | ||
|
||
const testFolder = getConfigFor('specs', 'e2e'); | ||
const testFolder = getConfigFor('file', 'specs', 'e2e'); |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
There was a problem hiding this 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
bd76fc7
to
660df9c
Compare
is the test failure on my end? https://travis-ci.org/wix/detox/jobs/352531838 |
Agnostic approach to running a specific test file.
former PR: #502