-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Detox test command failed #855
Comments
Wait for 8.0.1 version for a couple of days. Or if you are impatient, try replacing your I think you have bumped into an already fixed issue, it just has not been released yet. |
I'm not sure the use of "more info needed" label here is correct. @noomorph What information are you looking from the user? If the issue has been solved in a pull request or in master, please close the issue. |
I want @aibhavdixit107 to check if the patch to If yes - I'm closing the issue. I need at least a yes or a no. |
👍 |
I think we release today after the noon. |
Exactly, that's why I put the label on. :) |
Thanks it solved my issue. |
This thread has been automatically locked to prevent bumping of old threads. Instead, if you believe the issue still reproduces, please open a new issue and provide all the required information. |
For usage help, ask a question on Stack Overflow with the
detox
tag. The issues section of the project is meant for opening bug reports and enhancement requests of Detox. We use it to automatically track the change logIMPORTANT: Use search before opening an issue. Duplicate issues will simply be closed.
Description
Hi,
We are making an app in react-native. For the E2E testing we are using Detox, the test runner is Jest. I installed detox-cli and detox both globally and locally as dev dependencies. When I try to run detox build, it makes a successful build for the android, all other commands with the detox keyword works well for me. But when I try to run detox test it fails. It throws me this error.
Error: Command failed: node_modules.bin\jest e2e --config=e2e/config.json --maxWorkers=1 --testNamePattern='^((?!:ios:).)*$'
I spent a quite lot of time to figure this error, but didn't get through. I was using version 8.0.0 for detox and then I switched to version 7.4.0. but I get the same error.
This is how my package.json looks like:
{
"name": "test",
"version": "1.0.0",
"private": true,
"devDependencies": {
"@babel/core": "^7.0.0-beta.54",
"babel-eslint": "^8.2.3",
"babel-preset-react-native": "^4.0.0",
"babel-preset-react-native-stage-0": "^1.0.1",
"detox": "^7.4.0",
"detox-cli": "^7.4.0",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme-to-json": "^3.3.4",
"eslint": "^5.0.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-config-airbnb-base": "^13.0.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jest": "^21.17.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "^7.9.1",
"eslint-plugin-react-native": "^3.2.1",
"jest": "^23.4.1",
"jest-html-reporter": "^2.3.0",
"jest-react-native": "^18.0.0",
"mock-socket": "^7.1.0",
"prettier": "^1.13.4",
"prettier-eslint": "^8.8.1",
"react-addons-test-utils": "^15.6.2",
"react-test-renderer": "16.2.0",
"sinon": "^5.0.10"
},
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios",
"docs": "jsdoc -c .jsdoc.json",
"test": "jest"
},
"jest": {
"preset": "react-native",
"transformIgnorePatterns": [
"node_modules/(?!react-native|react-navigation|native-base|@expo)/"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"collectCoverage": true,
"testResultsProcessor": "./node_modules/jest-html-reporter"
},
"dependencies": {
"babel-jest": "^23.2.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"native-base": "^2.4.2",
"prop-types": "^15.6.1",
"react": "16.2.0",
"react-dom": "^16.3.2",
"react-native": "0.52.0",
"react-native-vector-icons": "^4.6.0",
"react-native-zeroconf": "^0.9.0",
"react-navigation": "^2.6.0",
"react_native_mqtt": "^1.1.9"
},
"jest-html-reporter": {
"pageTitle": "Your test suite",
"outputPath": "test-report.html",
"includeFailureMsg": true,
"sort": "executionAsc",
"theme": "lightTheme",
"includeConsoleLog": true
},
"detox": {
"test-runner": "jest",
"runner-config": "e2e/config.json",
"configurations": {
"android.emu.debug": {
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "pushd android && gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd",
"type": "android.emulator",
"name": "Nexus_5X_API_26"
}
}
}
}
Steps to Reproduce
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
The text was updated successfully, but these errors were encountered: