You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3156f85
Browse filesBrowse the repository at this point in the historyBrowse files
test_runner: remove failure attribute from JUnit reporter
This commit aligns the Node.js test runner's JUnit XML output with the
official JUnit specification by removing the non-standard failure
attribute from elements.
Signed-off-by: Aliaksandr <42497203+AlexCannonball@users.noreply.github.com>
Co-authored-by: devholic22 <hyunjoon.tech@gmail.com>
PR-URL: #66072Fixes: #59593
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
<testcasename="sync t is this in test"time="*"classname="test"file="*"/>
210
210
<testcasename="async t is this in test"time="*"classname="test"file="*"/>
211
211
<testcasename="callback t is this in test"time="*"classname="test"file="*"/>
212
-
<testcasename="callback also returns a Promise"time="*"classname="test"file="*"failure="passed a callback but also returned a Promise">
212
+
<testcasename="callback also returns a Promise"time="*"classname="test"file="*">
213
213
<failuretype="callbackAndPromisePresent"message="passed a callback but also returned a Promise">
214
214
[Error [ERR_TEST_FAILURE]: passed a callback but also returned a Promise] { code: 'ERR_TEST_FAILURE', failureType: 'callbackAndPromisePresent', cause: 'passed a callback but also returned a Promise' }
215
215
</failure>
216
216
</testcase>
217
-
<testcasename="callback throw"time="*"classname="test"file="*"failure="thrown from callback throw">
<testcasename="sync throw fails at first"time="*"classname="subtest sync throw fails"file="*"failure="thrown from subtest sync throw fails at first">
290
+
<testcasename="sync throw fails at first"time="*"classname="subtest sync throw fails"file="*">
291
291
<failuretype="testCodeFailure"message="thrown from subtest sync throw fails at first">
292
292
Error [ERR_TEST_FAILURE]: thrown from subtest sync throw fails at first
293
293
at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:334:11) {
@@ -301,7 +301,7 @@ Error [ERR_TEST_FAILURE]: thrown from subtest sync throw fails at first
301
301
}
302
302
</failure>
303
303
</testcase>
304
-
<testcasename="sync throw fails at second"time="*"classname="subtest sync throw fails"file="*"failure="thrown from subtest sync throw fails at second">
304
+
<testcasename="sync throw fails at second"time="*"classname="subtest sync throw fails"file="*">
305
305
<failuretype="testCodeFailure"message="thrown from subtest sync throw fails at second">
306
306
Error [ERR_TEST_FAILURE]: thrown from subtest sync throw fails at second
307
307
at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:337:11) {
@@ -316,25 +316,25 @@ Error [ERR_TEST_FAILURE]: thrown from subtest sync throw fails at second
316
316
</failure>
317
317
</testcase>
318
318
</testsuite>
319
-
<testcasename="timed out async test"time="*"classname="test"file="*"failure="test timed out after 5ms">
319
+
<testcasename="timed out async test"time="*"classname="test"file="*">
320
320
<failuretype="testTimeoutFailure"message="test timed out after 5ms">
321
321
[Error [ERR_TEST_FAILURE]: test timed out after 5ms] { code: 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after 5ms' }
322
322
</failure>
323
323
</testcase>
324
-
<testcasename="timed out callback test"time="*"classname="test"file="*"failure="test timed out after 5ms">
324
+
<testcasename="timed out callback test"time="*"classname="test"file="*">
325
325
<failuretype="testTimeoutFailure"message="test timed out after 5ms">
326
326
[Error [ERR_TEST_FAILURE]: test timed out after 5ms] { code: 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after 5ms' }
327
327
</failure>
328
328
</testcase>
329
329
<testcasename="large timeout async test is ok"time="*"classname="test"file="*"/>
330
330
<testcasename="large timeout callback test is ok"time="*"classname="test"file="*"/>
0 commit comments