Skip to content
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

Jest tests don't finish when using --record-logs=all #939

Closed
EdwardDrapkin opened this issue Sep 20, 2018 · 3 comments
Closed

Jest tests don't finish when using --record-logs=all #939

EdwardDrapkin opened this issue Sep 20, 2018 · 3 comments

Comments

@EdwardDrapkin
Copy link
Contributor

Hey there,

It seems that intermittently, the logger fails to log correctly and never finishes, hanging the test process. Sometimes it finishes, sometimes it doesn't.

  • Detox: 9.0.1
  • React Native: 0.56.0
  • Node: 10.5.0
  • Device: iPhone 6 Simulator
  • Xcode: 9.4.1
  • macOS: High Sierra

I'm using this command to launch the tests:

yarn detox test --configuration=ios.sim.debug --runner-config=test/detox-jest.json --specs=e2e/ --artifacts-location=./.e2e/flexmobile -f '"e2e.*"' --record-logs=all

If I remove the --record-logs=all it works consistently.

@noomorph
Copy link
Collaborator

@EdwardDrapkin , run with --loglevel trace and attach logs.

@no-response
Copy link

no-response bot commented Oct 1, 2018

This issue has been automatically closed because there has been no response to our request for more information from the original author.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2018
@noomorph
Copy link
Collaborator

noomorph commented Apr 14, 2019

By the way, @EdwardDrapkin, looks like I've found the issue and fixed it. It was caused by a hack in a third party lib that caused a race condition. Thanks for the feedback, anyways!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants