-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(test-support): Use test name for dir when running tests #16121
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ran this twice and and it failed $ cargo t --test testsuite config_include::bad_format
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.80s
Running tests/testsuite/main.rs (/Users/user/.cargo/build-cache/debug/deps/testsuite-da0240c1196e03cf)
running 1 test
test config_include::bad_format ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 3900 filtered out; finished in 0.11s
$ cargo t --test testsuite config_include::bad_format
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.74s
Running tests/testsuite/main.rs (/Users/user/.cargo/build-cache/debug/deps/testsuite-da0240c1196e03cf)
running 1 test
test config_include::bad_format ... FAILED
failures:
---- config_include::bad_format stdout ----
thread 'config_include::bad_format' (91574537) panicked at crates/cargo-test-support/src/lib.rs:200:9:
failed running os::unix::fs::symlink(&self.dst, &self.src)
error: File exists (os error 17)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
config_include::bad_format
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 3900 filtered out; finished in 0.00sI am on Mac OS 15.7.1 [64-bit]
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I figured out the issue, |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -717,7 +717,7 @@ implicit_minimum_version_req = "warn" | |
| [WARNING] dependency version requirement without an explicit minimum version | ||
| --> Cargo.toml:7:[..] | ||
| | | ||
| 7 | bar = { git = '[ROOTURL]/bar', version = "0.1" } | ||
| 7 | ...git_dep_with_registry_version/bar', version = "0.1" } | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like this change runs into Ideally, we would just increase the term width for this test, but |
||
| | [..]^^^^^ missing full version components | ||
| | | ||
| [HELP] consider specifying full `major.minor.patch` version components | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to call out @ehuss's comment #11738 (comment), though personally fine with this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how I missed this when I was going back through that PR. Given that concern, it might make sense for me to bring this up in the next team meeting.