mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
Use correct skip check when generating junit reports (#7571)
This commit is contained in:
parent
9264a8d5b1
commit
27d89732ce
@ -87,7 +87,7 @@ class JUnitReporter extends EmptyReporter {
|
|||||||
|
|
||||||
suite.findTest(test => {
|
suite.findTest(test => {
|
||||||
++tests;
|
++tests;
|
||||||
if (test.skipped)
|
if (test.status() === 'skipped')
|
||||||
++skipped;
|
++skipped;
|
||||||
if (!test.ok())
|
if (!test.ok())
|
||||||
++failures;
|
++failures;
|
||||||
@ -129,7 +129,7 @@ class JUnitReporter extends EmptyReporter {
|
|||||||
};
|
};
|
||||||
entries.push(entry);
|
entries.push(entry);
|
||||||
|
|
||||||
if (test.skipped) {
|
if (test.status() === 'skipped') {
|
||||||
entry.children.push({ name: 'skipped'});
|
entry.children.push({ name: 'skipped'});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user