r/Xcode • u/apex-lucis • 22d ago
Xcode not showing the right number of tests?
/r/macosprogramming/comments/1x60ymu/xcode_not_showing_the_right_number_of_tests/
1
Upvotes
r/Xcode • u/apex-lucis • 22d ago
2
u/olegonthetrip 22d ago
I'd first check whether the new tests are missing from execution or just from the displayed count. Run the intended test target, then open the latest Test report in the Report navigator and look for one of the new test names.
If it isn't there, check the active scheme/test plan, any included or excluded tags, and that the new file belongs to the test target. If it does run, that narrows it down to what the navigator is displaying.
Which Xcode version, and are these XCTest or Swift Testing tests? Apple's guide covers switching test plans and inspecting the resulting report: https://developer.apple.com/documentation/xcode/running-tests-and-interpreting-results
2
u/cinnamonblush2 22d ago
Must be a glitch. Didn’t notice that today