You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2019. It is now read-only.
It would be great if there were an ability to use custom test reporters.
In our team we use Teamcity to run tests. It requires some extra console output so log could be recognized as tests.
I see two general ways of implementing this:
The first is to wrap entire module in some test framework like Mocha. In that case screenshots will be taken in before() hook and the comparison should look like individual test per screenshot.
Pros:
We could use full power of Mocha including all existing reporters
Cons:
Requires a lot of work
The second approach is in wrapping existing info, success, failure functions into single reporter object, call it defaultReporter and provide an ability to include custom user reporters via cli options.
Pros:
Much easier to implement
Won't break current architecture and backward compatibility
Cons:
Inability of using existing reporters
A bit of Reinventing the wheel here.
It would be great if there were an ability to use custom test reporters.
In our team we use Teamcity to run tests. It requires some extra console output so log could be recognized as tests.
I see two general ways of implementing this:
The first is to wrap entire module in some test framework like Mocha. In that case screenshots will be taken in before() hook and the comparison should look like individual test per screenshot.
Pros:
We could use full power of Mocha including all existing reporters
Cons:
Requires a lot of work
The second approach is in wrapping existing info, success, failure functions into single reporter object, call it defaultReporter and provide an ability to include custom user reporters via cli options.
Pros:
Much easier to implement
Won't break current architecture and backward compatibility
Cons:
Inability of using existing reporters
A bit of Reinventing the wheel here.