Skip to content

Commit e274c7a

Browse files
leemarsfornwall
authored andcommitted
Fix testcase for running tests
1 parent b80b3df commit e274c7a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/data/script-test.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
fn main() {}
2+
13
#[test]
24
fn test() {}

tests/tests/script.rs

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ fn test_script_short_without_main() {
8989
fn test_script_test() {
9090
let out = rust_script!("--test", "tests/data/script-test.rs").unwrap();
9191
assert!(out.success());
92+
assert!(out.stdout.contains("running 1 test"));
9293
}
9394

9495
#[test]

0 commit comments

Comments
 (0)