解毒并没有运行Android测试。看起来只是因为
negative lookahead
在正则表达式中。
--testNamePattern='^((?!:android:).)*$'
下面是我运行的成功的IOS测试的输出。
detox test
node_modules/.bin/jest e2e --config=e2e/config.json --maxWorkers=1 --testNamePattern='^((?!:android:).)*$'
server listening on localhost:55356...
: Searching for device matching iPhone 7...
: Uninstalling com.testapp.test...
: com.testapp.test uninstalled
: Installing /Users/work/Documents/test/ios/build/Build/Products/Debug-iphonesimulator/test.app...
: /Users/work/Documents/test/ios/build/Build/Products/Debug-iphonesimulator/test.app installed
: Terminating com.testapp.test...
: com.testapp.test terminated
: Launching com.testapp.test...
7: com.testapp.test launched. The stdout and stderr logs were recreated, you can watch them with:
tail -F /Users/work/Library/Developer/CoreSimulator/Devices/AF406169-5CF3-4480-9D00-8F934C420043/data/tmp/detox.last_launch_app_log.{out,err}
PASS e2e/firstTest.spec.js (10.504s)
Example
â should have Home tab (1283ms)
â should show detail screen after tap (1872ms)
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: 11.153s, estimated 12s
Ran all test suites matching /e2e/i with tests matching "^((?!:android:).)*$".
关于您的测试失败,如果没有看到日志的完整输出,我们无法帮助您。