Skip to content
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

Share a common Reporter interface? #313

Closed
JamesMGreene opened this issue Sep 6, 2014 · 6 comments
Closed

Share a common Reporter interface? #313

JamesMGreene opened this issue Sep 6, 2014 · 6 comments

Comments

@JamesMGreene
Copy link

We on the QUnit team have been discussing the possibility of working with other JS test frameworks, especially those that can be run client-side (e.g. Mocha, Jasmine, Intern, Buster, etc.), to agree upon a common Reporter interface so that we could hopefully share Reporter plugins between testing frameworks.

This would most likely come in the form of:

  • a common Reporter API/Interface, e.g.
    • an EventEmitter interface (.on(...)/.off(...)) OR an object with standard "hook" properties
    • maybe a standard-ish way to register a Reporter, e.g. MyLib.addReporter(x), MyLib.reporter = x;, etc.
  • a minimum viable set of standardly-named events
    • an associated standard set of data/details provided for each event
  • a minimum viable set of standard test status types (e.g. pass, fail, skip, todo, pending, etc.)
  • updating all participating test frameworks to support this new common Reporter interface

Would you guys be interested in discussing this further with us? If so, please let me know who I should invite to participate.

Centralized Discussions: https://github.com/js-reporters/js-reporters/issues/

Cross-reference issues:

@indexzero
Copy link

I love this idea

@JamesMGreene
Copy link
Author

@indexzero: Would you like to be invited, then? Anyone else from the Vows team I should invite?

@indexzero
Copy link

Yes. Invite @JerrySievert and @davglass

@JerrySievert
Copy link

i would love a common reporter interface. been struggling with some non-common ones as i have moved between testing frameworks to conform to other environments (hapi, gulp, etc). this would make my, and vow's life better.

@JamesMGreene
Copy link
Author

All three of you are now invited. Go to https://github.com/js-reporters to accept the invitation (or via the GitHub email you'll probably receive).

Then please head to https://github.com/js-reporters/js-reporters/issues/ soon-ish as you guys are a bit late arriving to the party (lots of discussion already occurring between QUnit, Jasmine, Mocha, and BusterJS). Thanks!

@JamesMGreene
Copy link
Author

P.S. qunitjs/js-reporters#7 ("Roadmap") may be the best place to start as it provides a basic outline of the idea and links to relevant issues for each part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants