mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: speculative fix for reporter-blob (#23630)
This commit is contained in:
parent
abdfe264fa
commit
dd9a49690b
@ -1064,7 +1064,7 @@ test('custom project suffix', async ({ runInlineTest, mergeReports }) => {
|
|||||||
class EchoReporter {
|
class EchoReporter {
|
||||||
onBegin(config, suite) {
|
onBegin(config, suite) {
|
||||||
const projects = suite.suites.map(s => s.project().name);
|
const projects = suite.suites.map(s => s.project().name);
|
||||||
console.log('projects:', projects);
|
console.log('projects:' + projects);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
module.exports = EchoReporter;
|
module.exports = EchoReporter;
|
||||||
@ -1088,7 +1088,7 @@ test('custom project suffix', async ({ runInlineTest, mergeReports }) => {
|
|||||||
|
|
||||||
const { exitCode, output } = await mergeReports(reportDir, {}, { additionalArgs: ['--reporter', test.info().outputPath('echo-reporter.js')] });
|
const { exitCode, output } = await mergeReports(reportDir, {}, { additionalArgs: ['--reporter', test.info().outputPath('echo-reporter.js')] });
|
||||||
expect(exitCode).toBe(0);
|
expect(exitCode).toBe(0);
|
||||||
expect(output).toContain(`projects: [ 'foo-suffix', 'bar-suffix' ]`);
|
expect(output).toContain(`projects:foo-suffix,bar-suffix`);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('same project different suffixes', async ({ runInlineTest, mergeReports }) => {
|
test('same project different suffixes', async ({ runInlineTest, mergeReports }) => {
|
||||||
@ -1100,7 +1100,7 @@ test('same project different suffixes', async ({ runInlineTest, mergeReports })
|
|||||||
onBegin(config, suite) {
|
onBegin(config, suite) {
|
||||||
const projects = suite.suites.map(s => s.project().name);
|
const projects = suite.suites.map(s => s.project().name);
|
||||||
projects.sort();
|
projects.sort();
|
||||||
console.log('projects:', projects);
|
console.log('projects:' + projects);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
module.exports = EchoReporter;
|
module.exports = EchoReporter;
|
||||||
@ -1125,7 +1125,7 @@ test('same project different suffixes', async ({ runInlineTest, mergeReports })
|
|||||||
const reportDir = test.info().outputPath('blob-report');
|
const reportDir = test.info().outputPath('blob-report');
|
||||||
const { exitCode, output } = await mergeReports(reportDir, {}, { additionalArgs: ['--reporter', test.info().outputPath('echo-reporter.js')] });
|
const { exitCode, output } = await mergeReports(reportDir, {}, { additionalArgs: ['--reporter', test.info().outputPath('echo-reporter.js')] });
|
||||||
expect(exitCode).toBe(0);
|
expect(exitCode).toBe(0);
|
||||||
expect(output).toContain(`projects: [ 'foo-first', 'foo-second' ]`);
|
expect(output).toContain(`projects:foo-first,foo-second`);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('no reports error', async ({ runInlineTest, mergeReports }) => {
|
test('no reports error', async ({ runInlineTest, mergeReports }) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user