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

Function customReporterObject

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

Source from the content-addressed store, hash-verified

563 * wdio test run with custom reporter as object
564 */
565const 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

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…