| 548 | * wdio test run with custom reporter as string |
| 549 | */ |
| 550 | const customReporterString = async () => { |
| 551 | await launch('customReporterString', baseConfig, { |
| 552 | specs: [path.resolve(__dirname, 'mocha', 'reporter.js')], |
| 553 | reporters: [['smoke-test', { foo: 'bar' }]] |
| 554 | }) |
| 555 | await sleep(100) |
| 556 | const reporterLogsPath = path.resolve(__dirname, 'helpers', 'wdio-0-0-smoke-test-reporter.log') |
| 557 | const reporterLogs = await fs.readFile(reporterLogsPath) |
| 558 | assert.equal(reporterLogs.toString(), REPORTER_LOGS) |
| 559 | await fs.unlink(reporterLogsPath) |
| 560 | } |
| 561 | |
| 562 | /** |
| 563 | * wdio test run with custom reporter as object |