-
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
Detox stops running after 3rd test file #1107
Comments
@ricbermo did you found a solution? I have the same :| |
hey @kasterlod, how u doing? no, I didn't I had to create a custom script to run them all one by one. Here it is: /* eslint no-console: 0 */
const glob = require('glob');
const {execSync} = require('child_process');
const baseCommand = 'detox test -f';
function run() {
try {
const files = glob.sync('**/e2e/*.test.js');
const commands = files.map(path => `${baseCommand} ../${path}`);
commands.forEach(c => {
console.log('=======================');
console.log(`Running ${c}`);
execSync(c);
console.log('=======================');
});
} catch (e) {
console.log(e);
}
}
run();```
Notice I'm using node glob. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
The issue has been closed for inactivity. |
Description
I'm not really sure about how to describe the issue since it's very weird, but I'll do my best to describe it here. Short: Detox stops/freezes after the 3rd test finishes running.
I have a list of 11 tests files, if I run the tests file by file using
detox test -f e2e/myFile.test.js
the tests pass. When I rundetox tests
to run them all, the process freezes/stop after the 3rd file is tests or testing the 4th one begins.On every single file I have this:
I created those helpers to avoi.d repeating code.
Steps to Reproduce
I'm not sure if I need steps here but:
detox test
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
The text was updated successfully, but these errors were encountered: