Skip to content

Support pluggable reporters #12

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

Open
nex3 opened this issue Feb 19, 2015 · 6 comments
Open

Support pluggable reporters #12

nex3 opened this issue Feb 19, 2015 · 6 comments
Labels
plugin API status-blocked Blocked from making progress by another (referenced) issue type-enhancement A request for a change that isn't a bug

Comments

@nex3
Copy link
Member

nex3 commented Feb 19, 2015

There should be a means for third parties to create reporters that are dynamically loaded and used by unittest.

This is particularly tricky because reporters are likely to be desired on a user-by-user rather than project-by-project basis, so there's some friction to just putting it into a project's pubspec.

@nex3 nex3 added the type-enhancement A request for a change that isn't a bug label Feb 19, 2015
@Fox32
Copy link

Fox32 commented Feb 24, 2015

I think for the first implementation it would be sufficient if I could specify a reporter via command line.

The main use case I consider is using the unittest command without a special reporter locally while developing, but another configuration on the continuous integration server. There I might need the report in the JUnit format (like this) or one of the many other formats.

@nex3
Copy link
Member Author

nex3 commented Feb 24, 2015

I agree; we should definitely also support setting reporters from the command line.

@nex3 nex3 modified the milestone: 1.0.0 Mar 31, 2015
@nex3 nex3 added the status-blocked Blocked from making progress by another (referenced) issue label Mar 31, 2015
@nex3
Copy link
Member Author

nex3 commented Mar 31, 2015

This is blocked on #48.

@jayudey-wf
Copy link
Contributor

this is needed in order to utilize saucelabs unit testing capabilities, https://docs.saucelabs.com/reference/rest-api/?_ga=1.245459780.1583316598.1430344943#start-js-unit-tests

@nex3
Copy link
Member Author

nex3 commented Aug 20, 2015

A reporter plugin isn't a good fit for Sauce Labs. A reporter just takes the results of tests being run and displays them to the user, it doesn't run the test itself. #49 or #99 might be a better fit.

@butlermatt
Copy link

I'd love this functionality, along with #48. I had a previous project using unittest which I wrote my own custom configuration to create Dart Koans (See: https://github.com/butlermatt/dart_koans/blob/master/lib/src/config_koans.dart )

I tried to revive this project this evening with Test but it doesn't seem that same configurability is available with test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin API status-blocked Blocked from making progress by another (referenced) issue type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants