-
Notifications
You must be signed in to change notification settings - Fork 782
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
Implement reporter interface #405
Comments
I'd love to see a generic hook for "reporters" so that people can more easily write their own as well. As for differences between JUnit and XUnit, @gboissinot explained a little bit in #393. |
👍 |
@Krinkle Any thoughts on a "reporters" hook or config? If none are specified before |
@JamesMGreene how would that hook be different from the callbacks we have right now? |
@jzaefferer Main difference is being able to essentially disable the default HTML reporter in favor of some othere reporter, thus reducing the work being done (and making it easier to integrate in Node.js). Does such an option already exist and I'm just unaware of It? |
You can disable the HTML reporter by not including the |
Sure, I suppose that makes total sense but it didn't dawn on me. Either way, I would like to isolate/modularize the "qunit-reporter-html" aspect of QUnit core when we tackle #378. |
Making this dependant on #422. The reporter interface would be an abstraction around several event listeners. We can then port the current html generation to be the default reporter. |
@Krinkle: Makes sense. Should we still add a method like |
@JamesMGreene Yes, I intend to create such method. |
We can also consider having a linear model as well (either in addition or instead of the data model). The difference would be that that one would only contain assertions and the logical structure would be repeated in each object (e.g. which grouping it is part of). The linear model could then be used to e.g. extract or provide a list of failed assertions only. |
This is solved by #890 (before QUnit 2) and js-reporters (after QUnit 2) |
We finally have this! \o/ |
We have JUnit, which can be improved a lot. Is there a difference to XUnit?
There's a plugin for TAP output ( https://github.com/twada/qunit-tap ), which we should at least link to, though maybe that could become an official add-on.
The text was updated successfully, but these errors were encountered: