cargo: run host unit tests before builds
ci / check (push) Failing after 8m51s

This commit is contained in:
agent-pool-12
2026-10-17 15:50:09 +00:00
parent 3bc462ffd2
commit 22590c608d
7 changed files with 242 additions and 62 deletions
@@ -0,0 +1,6 @@
[package]
name = "cargo-test-fail"
version = "0.1.0"
edition = "2024"
[workspace]
@@ -0,0 +1,9 @@
fn main() {}
#[cfg(test)]
mod tests {
#[test]
fn deliberate_unit_test_failure() {
assert_eq!(2 + 2, 5);
}
}
+8
View File
@@ -1 +1,9 @@
fn main() {}
#[cfg(test)]
mod tests {
#[test]
fn unit_tests_run_on_the_host_target() {
assert_eq!(2 + 2, 4);
}
}