MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / customReporterString

Function customReporterString

tests/smoke.runner.js:550–560  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

548 * wdio test run with custom reporter as string
549 */
550const 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

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.70
launchFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…