Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion crates/cargo-codspeed/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub fn run_benches(
let benches =
package_filters.benches_to_run(metadata, bench_target_filters, codspeed_target_dir)?;
if benches.is_empty() {
bail!("No benchmarks found. Run `cargo codspeed build` first.");
bail!("No benchmarks found for the {measurement_mode} mode. Run `cargo codspeed build -m {measurement_mode}` first.");
}

eprintln!("Collected {} benchmark suite(s) to run", benches.len());
Expand Down
2 changes: 1 addition & 1 deletion crates/cargo-codspeed/tests/simple-bencher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn test_simple_run_without_build() {
.arg("run")
.assert()
.failure()
.stderr(contains("Error: No benchmarks found."));
.stderr(contains("Error: No benchmarks found for the instrumentation mode. Run `cargo codspeed build -m instrumentation` first."));
teardown(dir);
}

Expand Down
2 changes: 1 addition & 1 deletion crates/cargo-codspeed/tests/simple-criterion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn test_criterion_run_without_build() {
.arg("run")
.assert()
.failure()
.stderr(contains("Error: No benchmarks found."));
.stderr(contains("Error: No benchmarks found for the instrumentation mode. Run `cargo codspeed build -m instrumentation` first."));
teardown(dir);
}

Expand Down
2 changes: 1 addition & 1 deletion crates/cargo-codspeed/tests/simple-divan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn test_divan_run_without_build() {
.arg("run")
.assert()
.failure()
.stderr(contains("Error: No benchmarks found."));
.stderr(contains("Error: No benchmarks found for the instrumentation mode. Run `cargo codspeed build -m instrumentation` first."));
teardown(dir);
}

Expand Down
4 changes: 2 additions & 2 deletions crates/cargo-codspeed/tests/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn test_workspace_run_without_build() {
.arg("run")
.assert()
.failure()
.stderr(contains("Error: No benchmarks found."));
.stderr(contains("Error: No benchmarks found for the instrumentation mode. Run `cargo codspeed build -m instrumentation` first."));
teardown(dir);
}

Expand Down Expand Up @@ -62,7 +62,7 @@ fn test_workspace_build_subpackage_and_run_other() {
.args(["--package", "package-b"])
.assert()
.failure()
.stderr(contains("Error: No benchmarks found."));
.stderr(contains("Error: No benchmarks found for the instrumentation mode. Run `cargo codspeed build -m instrumentation` first."));
teardown(dir);
}

Expand Down
Loading