-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Print executable name on cargo test --no-run
.
#9959
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1346,6 +1346,7 @@ fn test_no_run() { | |
"\ | ||
[COMPILING] foo v0.0.1 ([CWD]) | ||
[FINISHED] test [unoptimized + debuginfo] target(s) in [..] | ||
[EXECUTABLE] [..] (target/debug/deps/foo-[..][EXE]) | ||
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. Is there a particular reason to use 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 actually looked at other tests such as 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. Hm, yea I'm not sure why it does that since in that case it is just the word "unittests". I think it would be good to include the actual output here so that it is clearer what is being emitted and checked. 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. If you have a chance, I would appreciate if you can remove the |
||
", | ||
) | ||
.run(); | ||
|
@@ -1963,6 +1964,7 @@ fn example_bin_same_name() { | |
[RUNNING] `rustc [..]` | ||
[RUNNING] `rustc [..]` | ||
[FINISHED] test [unoptimized + debuginfo] target(s) in [..] | ||
[EXECUTABLE] `[..]/target/debug/deps/foo-[..][EXE]` | ||
", | ||
) | ||
.run(); | ||
|
@@ -2498,6 +2500,9 @@ fn bin_does_not_rebuild_tests() { | |
[RUNNING] `rustc [..] src/main.rs [..]` | ||
[RUNNING] `rustc [..] src/main.rs [..]` | ||
[FINISHED] test [unoptimized + debuginfo] target(s) in [..] | ||
[EXECUTABLE] `[..]/target/debug/deps/foo-[..][EXE]` | ||
[EXECUTABLE] `[..]/target/debug/deps/foo-[..][EXE]` | ||
[EXECUTABLE] `[..]/target/debug/deps/foo-[..][EXE]` | ||
", | ||
) | ||
.run(); | ||
|
@@ -2556,6 +2561,7 @@ fn selective_test_optional_dep() { | |
[RUNNING] `rustc [..] a/src/lib.rs [..]` | ||
[RUNNING] `rustc [..] a/src/lib.rs [..]` | ||
[FINISHED] test [unoptimized + debuginfo] target(s) in [..] | ||
[EXECUTABLE] `[..]/target/debug/deps/a-[..][EXE]` | ||
", | ||
) | ||
.run(); | ||
|
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.
Since this is quite a lot of duplicated code with
run_benches
, can this be extracted out to a function to deduplicate it?