New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing configuration options to reporter (closes #5088) #5096
Conversation
❌ Tests for the commit cfb5040 have failed. See details: |
❌ Tests for the commit 83dc7a5 have failed. See details: |
❌ Tests for the commit 83dc7a5 have failed. See details: |
✅ Tests for the commit 83dc7a5 have passed. See details: |
src/reporter/index.js
Outdated
@@ -172,7 +172,7 @@ export default class Reporter { | |||
const userAgents = task.browserConnectionGroups.map(group => group[0].userAgent); | |||
const first = this.reportQueue[0]; | |||
|
|||
await this.plugin.reportTaskStart(startTime, userAgents, this.testCount, task.testStructure); | |||
await this.plugin.reportTaskStart(startTime, userAgents, this.testCount, task.testStructure, task.opts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to pass an object with the configuration
field, not a configuration object: ``. It will help us prevent breaking changes if we need to add a new argument in the future.
✅ Tests for the commit d513a7c have passed. See details: |
Purpose
Having configuration options allows the reporter to provide additional info
Approach
Feeding options as a param to
reportTaskStart
methodReferences
#5088 (options have screenshot and video dir paths)
#3497 (screenshots/videos paths can be relativized)
Pre-Merge TODO