-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Explore use of cargo nextest
for test running
#3752
Comments
Nextest does not run doctest so I disabled doctest by replacing warm perfs ❯ hyperfine 'cargo nextest run --all --all-features'
Benchmark 1: cargo nextest run --all --all-features
Time (mean ± σ): 6.459 s ± 0.115 s [User: 63.093 s, System: 6.695 s]
Range (min … max): 6.292 s … 6.700 s 10 runs
❯ hyperfine 'cargo test --all --all-features'
Benchmark 1: cargo test --all --all-features
Time (mean ± σ): 11.376 s ± 0.056 s [User: 43.252 s, System: 9.700 s]
Range (min … max): 11.296 s … 11.509 s 10 runs |
I cannot get to run ❯ cargo test --doc
Finished test [unoptimized + debuginfo] target(s) in 0.19s
Doc-tests ruff
running 11 tests
…
test src/map_codes.rs - map_codes::Entry::parse (line 283) ... FAILED
failures:
---- src/map_codes.rs - map_codes::Entry::parse (line 283) stdout ----
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>`
--> src/map_codes.rs:284:23
|
3 | (Pycodestyle, "E101") => Rule::MixedSpacesAndTabs,
| ^^ expected one of `.`, `;`, `?`, `}`, or an operator
error: aborting due to previous error
Couldn't compile the test.
failures:
src/map_codes.rs - map_codes::Entry::parse (line 283)
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
error: doctest failed, to rerun pass `-p ruff_macros --doc` |
Strange, fixed in #3766 |
Thank you @JonathanPlasse for measuring the wall-times. Did you create the measurements locally or on a GitHub Action? My reaction is that it's probably not worth using
But we may want to reconsider in the future, when we have more tests. |
We've explored it a bit -- not using for now, so closing. |
We should profile this to understand whether it's faster for our project.
See: https://twitter.com/boshen_c/status/1639878432820727809.
See: https://github.com/Boshen/oxc/blob/d4af69930ceb9f083e6358f60b0967abb3bfc5f5/.github/workflows/check.yaml#L104-L115.
The text was updated successfully, but these errors were encountered: