Detox: Videos recording sometimes causes simulator to freeze when a test fails
Describe the bug
There seems to be a problem with video recording (i.e. --record-videos
arg) on iOS: The simulator succeeds in running and recording the first test, but after that the simulator just freezes, and the generated .mp4
artifact is an empty file.
In the beginning I thought this had something to do with jest-circus
, but it appears to also reproduce when using Jest+Jasmine2 and also Mocha. It typically reproduces immediately when a test fails, but only once every few runs.
Additional note: I haven’t managed to have this reproduced on Android (standard emulator).
To Reproduce
- I have tested this issue on the latest Detox release and it still reproduces
- Set up a project with either Mocha or Jest 24.8.0 as the test runner (default setup).
- Set up as single e2e test suite with just one e2e test that fails.
- Run the suite a few times with
--record-videos all
; eventually the simulator will freeze upon run completion.
Expected behavior Should generate a proper artifact and keep the simulator alive.
Screenshots N/A
Environment (please complete the following information):
- Detox: 14.3.1
- React Native: 0.59.9
- Node: 10.15.3
- Device: iPhone X
- Xcode: 10.12
- iOS: 12.1
- macOS: 10.14.6
Device and Verbose Detox Logs N/A
iOS Framework Build Logs N/A
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (5 by maintainers)
@vonovak Thanks for letting us.
If you are seeing issues on our end, please open issues. Thanks
Well hurray, this also happens with Mocha.