Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Xcode and Bamboo | XCTest false positives

Deleted user June 2, 2017

I have 7 XCTest targets in Xcode. When run locally they all pass.

When run via Bamboo agent (same system that passed local run) around 2-4% of the test cases will randomly fail and they differ from run to run. 

All of the failed test cases failed with duration < 1 sec.

Has anyone else experienced this? If so, do you know of any solutions?

1 answer

0 votes
Cristiano Mariano
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2017

Hi David! How are you doing?

I have seen this behavior when the tests had time execution constraints in their Asserts. For example, a call would take no more than 100ms.

Is this your case?

Thanks,

Cristiano

Deleted user June 6, 2017

Hi Cristiano, I checked and confirmed that was not the case.
I dug in to the log and it appears all are failing due to

"App state is still not running active, state = XCApplicationStateRunningInactive"

Reading up on how to resolve this issue. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events