Skip to content

fix(justfile): remove errant run argument from test commands#8789

Merged
ematipico merged 1 commit intobiomejs:mainfrom
jfmcdowell:fix/justfile-test-command
Jan 18, 2026
Merged

fix(justfile): remove errant run argument from test commands#8789
ematipico merged 1 commit intobiomejs:mainfrom
jfmcdowell:fix/justfile-test-command

Conversation

@jfmcdowell
Copy link
Contributor

Summary

In commit ef5fd3a, the test runner was switched from cargo nextest run to cargo test, but the word run was accidentally left in the command:

Before: cargo nextest run --no-fail-fast (correct for nextest)
After: cargo test run --no-fail-fast (incorrect)
With cargo test run, the word run is interpreted as a test name filter, causing cargo to only run tests containing "run" in their name. This filters out the vast majority of tests.

# Example of the bug:
  running 0 tests
  test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 23 filtered out
# After this fix:
  running 733 tests
  test result: ok. 730 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out

Test Plan

Ran just test before and after the fix to confirm tests now execute properly rather than being filtered out.

Docs

N/A - internal tooling fix.

The `test` and `test-crate` recipes incorrectly used `cargo test run`
instead of `cargo test`, causing most tests to be filtered out.
@changeset-bot
Copy link

changeset-bot bot commented Jan 18, 2026

⚠️ No Changeset found

Latest commit: 3a76092

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 18, 2026

Walkthrough

This PR removes the incidental run subcommand token from two cargo test invocations in the justfile. The test and test-crate tasks now call cargo test directly, whilst retaining the --no-fail-fast flag in both cases. No changes to public APIs or exported entities.

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely describes the main change: removing an errant 'run' argument from test commands in the justfile.
Description check ✅ Passed The description is directly related to the changeset, providing clear context about the bug (leftover 'run' from cargo nextest migration), its impact (tests filtered out), and verification with before/after examples.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch

@ematipico ematipico merged commit f7ef0a3 into biomejs:main Jan 18, 2026
3 checks passed
@jfmcdowell jfmcdowell deleted the fix/justfile-test-command branch January 18, 2026 17:22
jfmcdowell added a commit to jfmcdowell/biome that referenced this pull request Jan 23, 2026
The error message for unclosed inline code spans was incorrectly showing
triple backticks (```) instead of the actual number of opening backticks.

For input like `This has `unclosed code`, the error said "expected closing
```" but should say "expected closing `".

The bug was in the format strings in `unclosed_code_span()` which wrapped
the `{backticks}` variable with literal backticks, adding 2 extra characters.
Since the variable already contained the correct backticks, this resulted in
3 backticks when only 1 was expected.

Also includes justfile fix from PR biomejs#8789 to remove errant `run` argument
from test commands.
jfmcdowell added a commit to jfmcdowell/biome that referenced this pull request Jan 23, 2026
The error message for unclosed inline code spans was incorrectly showing
triple backticks (```) instead of the actual number of opening backticks.

For input like `This has `unclosed code`, the error said "expected closing
```" but should say "expected closing `".

The bug was in the format strings in `unclosed_code_span()` which wrapped
the `{backticks}` variable with literal backticks, adding 2 extra characters.
Since the variable already contained the correct backticks, this resulted in
3 backticks when only 1 was expected.

Also includes justfile fix from PR biomejs#8789 to remove errant `run` argument
from test commands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants