I was looking for a similar feature in maven to only run failed test when I stumbled over this. But it only says "No existing test output found." So how do I trigger "swift test" to save test results that it can use?
It turns out this last subcommand was intended to be an experimental feature, but was incorrectly included in the help/usage by default instead of being hidden. I've filed an issue to hide it for now:
You can't, as far as I know. What you can do is run all the tests, fix the ones that are failing, then if you want to just check that one you fixed named say testExitSignal, run swift test --filter testExitSignal.
Well Finding the failed ones IS the issue among +500. the default is running in parallel (the help is wrong here too as it says: default is --no-parallel) which garbles the output. The work-around is to run --no-parallel or grep for the "x" which I think works