Skip to content

Commit 77ce7a9

Browse files
committed
test: Make test runnable without rhai.
1 parent 4b3ade0 commit 77ce7a9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/script_tests.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ trait TestExecutor {
1616

1717
impl TestExecutor for Test {
1818
fn execute(self) -> Result<(), Failed> {
19-
println!("Running test: {:?}", self.path);
2019

2120
match self.kind {
22-
TestKind::Lua => execute_lua_integration_test(&self.path.to_string_lossy())?,
21+
TestKind::Lua => {
22+
println!("Running test: {:?}", self.path);
23+
execute_lua_integration_test(&self.path.to_string_lossy())?
24+
},
2325
TestKind::Rhai => {
2426
if cfg!(feature = "rhai") {
27+
println!("Running test: {:?}", self.path);
2528
#[cfg(feature = "rhai")]
2629
script_integration_test_harness::execute_rhai_integration_test(&self.path.to_string_lossy())?
2730
} else {
28-
panic!("no 'rhai' feature")
31+
println!("Skipping test: {:?}", self.path);
2932
}
3033
},
3134

0 commit comments

Comments
 (0)