// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. use test_util as util; use util::assert_contains; use util::assert_not_contains; use util::wildcard_match; use util::TestContext; use util::TestContextBuilder; #[test] fn junit_path() { let context = TestContextBuilder::new().use_temp_cwd().build(); let temp_dir = context.temp_dir(); temp_dir.write("test.js", "Deno.test('does test', () => {});"); let output = context .new_command() .args("test --junit-path=sub_dir/output.xml test.js") .run(); output.skip_output_check(); output.assert_exit_code(0); temp_dir .path() .join("sub_dir/output.xml") .assert_matches_text("