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
Results output with unuseful message on test failure #200
Comments
I've seen this when the app crashes and we somehow fail to catch it... what does the main bluepill log say? Do you see any crashes in there? Sometimes there is a |
No there isn't any The main <failure type="Failure" message="UNKNOWN ERROR - PARSING FAILED: XCTestOutputBarrierTest Case '-[Target.TestSuite TestCase]' started.">
Unknown File:0
</failure> Moreover, each simulator folder contains a
|
I've got same error, any ideas why it's failing like that? |
Looks like an edge case in BPTreeParser, @PavloBasiuk @matteomatassoni do you have a way to reproduce this? |
It fails for each and every failed test-case. And 99% of my tests fails when expected element is not found on view. |
@PavloBasiuk could you write a sample test to repro (similar to BPTreeParserTests.m's testParsingCrash) and push to a branch? |
I plan on digging into this too, but just chiming in to say I'm having the same problem. All failed tests have this error in the logs. I confirmed that the failed tests are not the result of the app crashing, it's a legit assertion failure from XCTest I'm using Xcode 9 and Bluepill 2.0.1 with a project running Swift 4 XCTest UI Tests |
My setup is practically the same: Xcode9, Bluepill 2.0 with custom changes for jUnit reports, Swift3 and XCUITests. And yeah, I will try to create nice and simple test to reproduce this issue and share with all. |
Yes, it would be great if you all could provide dummy tests to reproduce this, otherwise it would be super hard for us to understand what is not parsed correctly. |
I have the same issue as described here. In my case this is happening for tests which crashed and for those where assertion failed. |
It appeared to be easier then I expected. I've just broke one of existing tests for simplicity, so don't merge this PR: #206 To reproduce:
|
ah.. i get it. We didn't fully test XCUITest scenarios. |
If this helps, I'm not specifying any special flags to change the test output format and I get this error. iirc all the switches to change the output format on the command in step 3 are already set to those options by default (plaintext + junit) |
Is there any progress on this issue? I spent a few hours digging through and couldn't quite figure out what's going on. Has something changed with the Simulator stdout in xcode 9 that's causing this issue? |
Fix a parsing failure for UI Tests (Issue #200)
fixed in #226 |
👍 |
The text was updated successfully, but these errors were encountered: