| 563 | * wdio test run with custom reporter as object |
| 564 | */ |
| 565 | const customReporterObject = async () => { |
| 566 | await launch( |
| 567 | 'customReporterObject', |
| 568 | path.resolve(__dirname, 'helpers', 'reporter.conf.js'), |
| 569 | ) |
| 570 | await sleep(100) |
| 571 | const reporterLogsWithReporterAsObjectPath = path.resolve(__dirname, 'helpers', 'wdio-0-0-CustomSmokeTestReporter-reporter.log') |
| 572 | const reporterLogsWithReporterAsObject = await fs.readFile(reporterLogsWithReporterAsObjectPath) |
| 573 | assert.equal(reporterLogsWithReporterAsObject.toString(), REPORTER_LOGS) |
| 574 | await fs.unlink(reporterLogsWithReporterAsObjectPath) |
| 575 | } |
| 576 | |
| 577 | /** |
| 578 | * wdio-reporter testrunner tests |