Skip to content

Commit 5d70d12

Browse files
committed
improve warning msg
1 parent 6be7dbd commit 5d70d12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sauce-testreporter.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function generateJUnitFile(
2020
const junitPath = path.join(assetsPath, `report.xml`);
2121
if (!fs.existsSync(junitPath)) {
2222
console.warn(
23-
`JUnit file generation skipped as the original JUnit file (${junitPath}) from TestCafe was not located.`,
23+
`JUnit file generation skipped: the original JUnit file (${junitPath}) from TestCafe was not located.`,
2424
);
2525
return;
2626
}
@@ -29,6 +29,7 @@ export function generateJUnitFile(
2929
const result: any = convert.xml2js(xmlData, opts);
3030

3131
if (!result.testsuite) {
32+
console.warn('JUnit file generation skipped: no test suites detected.');
3233
return;
3334
}
3435

0 commit comments

Comments
 (0)