Skip to content
This repository was archived by the owner on Nov 3, 2019. It is now read-only.
This repository was archived by the owner on Nov 3, 2019. It is now read-only.

CI-friendly console output #32

Description

@kot-lex

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions