Skip to content

Commit

Permalink
Fix testcase for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leemars authored and fornwall committed Jan 1, 2025
1 parent b80b3df commit e274c7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/data/script-test.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
fn main() {}

#[test]
fn test() {}
1 change: 1 addition & 0 deletions tests/tests/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ fn test_script_short_without_main() {
fn test_script_test() {
let out = rust_script!("--test", "tests/data/script-test.rs").unwrap();
assert!(out.success());
assert!(out.stdout.contains("running 1 test"));
}

#[test]
Expand Down

0 comments on commit e274c7a

Please sign in to comment.