-
Notifications
You must be signed in to change notification settings - Fork 114
Description
I am probably missing something basic, but I created a new RN app today (react-native init), installed and setup Cavy, ran the sample tests successfully on Android (cavy run-android) but cannot get it to work when running the Android release build (cavy run-android --variant release).
The app gets built and installed on the emulator but there is some sort of communication problem and cavy times out (with no tests seemingly run). This is what I see in the terminal:
...
BUILD SUCCESSFUL in 14s
29 actionable tasks: 2 executed, 27 up-to-date
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=com.rncavyhermes/.MainActivity }
cavy: react-native exited with code 0.
cavy: Running /Users/adail/Library/Android/sdk/platform-tools/adb reverse tcp:8082 tcp:8082
cavy: Listening on port 8082 for test results...
No response from Cavy within 2 minutes.
Terminating processes.
cavy: Putting your index.js back.
cavy: Running `mv index.js index.test.js && mv index.notest.js index.js`...
One weird thing is that I can run cavy fine in another (older) project on Android in our release builds... but not with Hermes enabled. (That problem with Hermes is what I was trying to look into, but this issue is blocking that... and to be clear Hermes is disabled in the scenario I describe above).
Does this ring a bell for anyone?
Thanks!