Skip to content

Commit 4d40c0e

Browse files
Jaromir Obrclaude
andcommitted
test(workers): find the Testomatio HTML report wherever the reporter writes it
Newer @testomatio/reporter versions write the report to <output>/report and ignore TESTOMATIO_HTML_REPORT_FOLDER. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 50829bb commit 4d40c0e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎test/runner/run_workers_test.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,9 @@ describe('CodeceptJS Workers Runner', function () {
613613
expect(stdout).toMatch(/OK\s+\|\s+8 passed/)
614614
expect(err).toEqual(null)
615615

616-
const html = fs.readFileSync(path.join(htmlDir, 'testomatio-report.html'), 'utf8')
616+
const reports = fs.readdirSync(outputDir, { recursive: true }).filter(file => file.endsWith('testomatio-report.html'))
617+
expect(reports).toHaveLength(1)
618+
const html = fs.readFileSync(path.join(outputDir, reports[0]), 'utf8')
617619
const entries = new Set([...html.matchAll(/"rid":"[^"]*@(dev_\w+)"[^{}]*?"title":"([^"]*)","suite_title":"([^"]*)"/g)].map(([, run, title, suite]) => `${run} ${suite}: ${title}`))
618620
const expected = []
619621
for (const run of ['dev_chromium1', 'dev_webkit1']) {

0 commit comments

Comments
 (0)