Is there a way to have
x.py test stop after the first test failure?
I don't think either
compiletest_rs (which is built around
libtest) has an option for this.
It'd make development turnaround much quicker in some cases. May raise an issue.
x.py already stops after a test executable reports an error. This is something that needs to be added to libtest and compiletest first, then x.py can expose a flag for this.
x.py already stops after a test executable reports an error.
Yes, it's just that one executable can contain thousands of tests.
Is there a way to run a single test case, rather than the whole executable?
Yes, I don't know the exact command, but it is something like
./x.py test src/test/ui -- ui/abc.rs.
I'd have thought:
./x.py test --stage 1 src/test/ui -- ui/abi/stack-probes-lto.rs
./x.py test --stage=1 src/test/ui/abi/stack-probes-lto.rs
For doctests and unit tests I think you can pass a second argument after
-- to filter out the one you want
you can also pass
--test-args which can filter multiple tests at a time