Some UI tests fail when I run all the test suite at once #103
-
In what area do you have a technical challenge?Xcode, Simulator & Previews DescriptionI am testing pulling my project from Assignment2 from GitHub, opening it and running all the tests. When I do so, a couple of UI tests fail with the following error:
However, if I run the same suite of tests a second time it works with no issues. I'm mostly concerned that this behavior might happen during grading. Reproduction
Expected behaviorIt should be able to download and run execute all tests with no errors. Each test is isolated and the entire suite runs with no errors after the first run. Additional contextNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @MiguelAFH, can you provide a link to your repository here so we can try to reproduce this issue? |
Beta Was this translation helpful? Give feedback.
@MiguelAFH I tried to clone your repo and reproduce the errors but could not see a test error like the one noted above. It could most likely be from a simulator that takes a longer time to boot (Xcode by default tries to spin up multiple ones for the different tests, especially ones that can be parallelized including the launch tests that are in an empty project setup).
I would suggest the following: