Skip to content

Commit

Permalink
Add tested modules as comments to invalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervonb committed Apr 27, 2021
1 parent c3a342a commit 5b3ebe0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cli/tools/test_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,15 @@ pub async fn run_tests(
"disableLog": quiet,
"filter": filter,
});
let test_source =
format!("await Deno[Deno.internal].runTests({});", test_options);

let mut test_source = String::new();

for test_module in &test_modules {
test_source.push_str(&format!("// {}\n", test_module));
}

test_source.push_str(&format!("await Deno[Deno.internal].runTests({});\n", test_options));

let test_module = deno_core::resolve_path("$deno$test.ts")?;
let test_file = File {
local: test_module.to_file_path().unwrap(),
Expand Down

0 comments on commit 5b3ebe0

Please sign in to comment.