Skip to content

Commit 3779d8a

Browse files
committed
Print test progress without --nocapture
1 parent b674f5d commit 3779d8a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ internal = ["clippy_lints/internal", "tempfile"]
5353
[package.metadata.rust-analyzer]
5454
# This package uses #[feature(rustc_private)]
5555
rustc_private = true
56+
57+
[[test]]
58+
name = "compile-test"
59+
harness = false

tests/compile-test.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,14 @@ fn run_ui_cargo() {
121121
ui_test::run_tests_generic(config, |path| path.ends_with("Cargo.toml")).unwrap();
122122
}
123123

124-
#[test]
125-
fn compile_test() {
124+
fn main() {
126125
set_var("CLIPPY_DISABLE_DOCS_LINKS", "true");
127126
run_ui();
128127
run_ui_toml();
129128
run_ui_cargo();
130129
run_internal_tests();
130+
rustfix_coverage_known_exceptions_accuracy();
131+
ui_cargo_toml_metadata();
131132
}
132133

133134
const RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS: &[&str] = &[
@@ -199,7 +200,6 @@ fn check_rustfix_coverage() {
199200
}
200201
}
201202

202-
#[test]
203203
fn rustfix_coverage_known_exceptions_accuracy() {
204204
for filename in RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS {
205205
let rs_path = Path::new("tests/ui").join(filename);
@@ -210,7 +210,6 @@ fn rustfix_coverage_known_exceptions_accuracy() {
210210
}
211211
}
212212

213-
#[test]
214213
fn ui_cargo_toml_metadata() {
215214
let ui_cargo_path = Path::new("tests/ui-cargo");
216215
let cargo_common_metadata_path = ui_cargo_path.join("cargo_common_metadata");

0 commit comments

Comments
 (0)