-
Notifications
You must be signed in to change notification settings - Fork 25
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
Test Suite issues #469
Comments
Seems that legacy tests also receives a
|
Any update on this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently there are tests that doesn't pass even running them individually:
It is frustrating when failing tests start to pass after you didn’t change anything, only tried debugging it for a few minutes.
I would like to ask if in a different client, e.g. JS or Ruby, if you run the test suite a couple of times one after another, the result is consistent? Always a green?
Problems that I'm facing a lot by running the test suite:
1. Fatal errors
@tcard already explained what happens when a test crash.
I forced a nil pointer exception and the crash is imperceptible by looking at the logs:
The test suite stops and we only see a
** TEST FAILED **
.The Realtime specs has a lot of code like
realtime.transport as! TestProxyTransport
. Thetransport
is created only when the connection starts connecting and when there is an error, e.g. the client couldn't retrieve a valid token, the transport remains nil and a bad access is raised by using a force unwrap. That's the most common.When this happens, I basically run the test individually and see what happens. In cases like this, should we retry the test?
BTW, the CI use
xcpretty
indirectly by usingscan
.xcpretty
is a formatter forxcodebuild
log but maybe we should have the raw log as well. It could help when we need to investigate a problem. I don't know if Travis supports it but we could try do something likexcodebuild [flags] | tee raw_xcodebuild.log | xcpretty
, by usingtee
and save the raw log.2. Done closure's called multiple times
The
done()
closure is used to indicate the waiting has completed, so it should be called only once. This error happens randomly, so I suppose that sometimes the event emitter is still emitting after the test has finished.This type of error leads to many consequent errors.
The text was updated successfully, but these errors were encountered: