From b5839eefcf02e62e9e77e8095f372ac06a523cba Mon Sep 17 00:00:00 2001 From: Alexander Michaud <131308558+armichaud@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:41:29 -0400 Subject: fix(test): JUnit reporter includes file, line and column attributes (#20174) Closes #20156 --- cli/tests/integration/test_tests.rs | 5 +++++ cli/tests/testdata/test/pass.junit.out | 38 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 cli/tests/testdata/test/pass.junit.out (limited to 'cli/tests') diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs index bcf050adf..04465dd53 100644 --- a/cli/tests/integration/test_tests.rs +++ b/cli/tests/integration/test_tests.rs @@ -267,6 +267,11 @@ itest!(exit_sanitizer { exit_code: 1, }); +itest!(junit { + args: "test --reporter junit test/pass.ts", + output: "test/pass.junit.out", +}); + itest!(clear_timeout { args: "test test/clear_timeout.ts", exit_code: 0, diff --git a/cli/tests/testdata/test/pass.junit.out b/cli/tests/testdata/test/pass.junit.out new file mode 100644 index 000000000..b652dbf85 --- /dev/null +++ b/cli/tests/testdata/test/pass.junit.out @@ -0,0 +1,38 @@ +Check [WILDCARD]/testdata/test/pass.ts + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3