Omit NEXTEST_NO_TESTS: fail
, now that it's the default
#1707
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR changes
ci.yml
to no longer explicitly tellcargo nextest
to treat the unexpected absence of any test cases as an error, since that is now that runner's default behavior.In 2fc93f7 (#1675), I added this to the top-level
env
inci.yml
, to get failures whenever acargo nextest
command looks for tests to run but doesn't find any:gitoxide/.github/workflows/ci.yml
Line 22 in 1435193
That commit also added
--no-tests=warn
in the one place where we deliberately have that happen:gitoxide/justfile
Line 189 in 1435193
Yesterday,
cargo-nextest
v0.9.85 was released. This includes the planned change nextest-rs/nextest#1646 that makes failure the default behavior here. That makesNEXTEST_NO_TESTS: fail
superfluous. The change in this PR is done in two commits, to verify that it is now superfluous, but they can be squashed into one if desired.Whether we should continue to set that explicitly is subjective, which is why I'm opening a PR just for it without including anything else (so it's easy to make a decision about this, whatever the decision is). It seems to me that we shouldn't, on the grounds that it was effectively a workaround for the preferable default
cargo nextest
not automatically treating that as an error, as well as a preparation for thenextest
behavior change that has come in as of v0.9.85.