Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests.mdx #220

Merged
merged 7 commits into from
May 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions docs/contributors/tests.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,17 @@ Examples:

A level 5 heading (`#####`), with the text being one of the following:

- `##### only` -- If at least one test has the `only` annotation, the runner will run this/these test(s).
- `##### skip` -- If a test has the `skip` annotation, the runner will not run that test.

These are typically added to tests temporarily, so try not to commit tests with annotations. There must be either zero or one annotations in a test.
This annotation is typically added to tests temporarily, so try not to commit tests with annotations. There must be either zero or one annotations in a test.
meskill marked this conversation as resolved.
Show resolved Hide resolved

Note: `##### only` has been removed in the favour of cargo option.

To run a single test locally one can use cargo option "--test".
meskill marked this conversation as resolved.
Show resolved Hide resolved
Example:
````sh
cargo --test --test execution_spec -- --test "test_filter"
````

### Blocks

Expand Down