-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
API for registering custom reporters #2583
Comments
When it comes to reporters I think the right approach is to output high-fidelity structured data, which can be piped to another process. More concretely:
This is still a ways off I think. What do you think? (I'm closing this issue for housekeeping purposes, but let's keep the conversation going.) |
@novemberborn So I would like to have a hook for failed assertion to be able to take screenshots when I use browser tests. Otherwise I have to check every result before/after to have precise screenshots. Anyway, is there an issue for that JSON report? |
You should be able to do that with
No it's just in my head I think. |
@novemberborn , what do you think about creating an API for custom reporters (not only reporters, probably)?
Something like an array of objects in settings, each object implements some set of functions called for each hook.
Like
ANd then in config file something like
That would allow creating different plugins/reporters easily.
The text was updated successfully, but these errors were encountered: