mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-10 11:39:05 +00:00
ca4b38c0d0
This commit makes passing compile UI tests optional, allowing the CI to succeed even when UI tests fail. This change was made because UI tests are highly susceptible to false negatives due to benign rustc compiler output changes. A failure resulting from such a benign change inhibits progress in the main branch due to failing PR testing which would have otherwise passed.
12 lines
262 B
Rust
12 lines
262 B
Rust
#[test]
|
|
#[ignore]
|
|
fn ui() {
|
|
let path = match version_check::is_feature_flaggable() {
|
|
Some(true) => "ui-fail-nightly",
|
|
_ => "ui-fail-stable"
|
|
};
|
|
|
|
let t = trybuild::TestCases::new();
|
|
t.compile_fail(format!("tests/{}/*.rs", path));
|
|
}
|