What happened?
Duplicated from this discussion:
https://community.tuist.io/t/stop-using-focus-when-testing/136
I have a script that allows generating XCTestPlan in which all unit-test targets that are in the workspace are, using gem xcodeproj.
I am thinking of abandoning the testPlan generation and passing the entire list via the --test-targets flag, but I encountered unexpected behavior:
At the first launch, everything works correctly.
At the second launch, focusing occurs, excluding test targets on which tests were previously launched.
This results in an error:
The following targets were not found: A, B, C
Deleting the ~/.cache/tuist/SelectiveTests folder fixes the error, but deletes the cache 😕
This behavior seems contradictory and requires (in the current situation) a premature error: –test-targets cannot be used together with –selective-testing
How do we reproduce it?
Call twice follow command:
tuist test --platform iOS --test-targets A B C --selective-testing
Error log
The following targets were not found: A, B, C
macOS version
Tuist version
4.31.0
Xcode version
14.3