Skip to content

Commit 5c26e87

Browse files
committed
Use task name
1 parent 165de46 commit 5c26e87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/e2e-tests/reporter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const XUnit = reporters.XUnit;
99
export class MochaReporter extends reporters.Base {
1010
constructor(runner: Runner, options: MochaOptions) {
1111
super(runner, options);
12-
const suiteName = path.basename(process.cwd());
12+
const suiteName = process.env.E2E_TASK_NAME ?? path.basename(process.cwd());
13+
console.info(`MOCHAREPORTER:${suiteName}`);
1314

1415
new Spec(runner);
1516

0 commit comments

Comments
 (0)