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

Add arbitrary reporter support to js api #323

Closed
tj opened this issue Mar 16, 2012 · 6 comments
Closed

Add arbitrary reporter support to js api #323

tj opened this issue Mar 16, 2012 · 6 comments
Labels
type: feature enhancement proposal

Comments

@tj
Copy link
Contributor

tj commented Mar 16, 2012

currently just takes the name

@Bartvds
Copy link

Bartvds commented Jun 27, 2012

+1

note: it's easy to hook into the pass/fail event's from the js api's mocha.run() object and make your own reporter functionality but it seems i can't completely silence/null the stdout reporter: i keep getting some failed reports in red. it seems it's the Base.epilogue (related to #138 maybe?)

i use this in a jake task

mocha = new Mocha({
    reporter: false
    ui: "bdd"
  })

@nherment
Copy link

nherment commented Jul 5, 2012

+1

@tj
Copy link
Contributor Author

tj commented Jul 5, 2012

note that now you can also do --reporter name where "name" is simply a module, so it can be local as in ./name or an npm installed module

@nherment
Copy link

nherment commented Jul 5, 2012

oh ok. good to know then. I guess the API of the module should be the exact same as the one the reporters implement ?

@tj
Copy link
Contributor Author

tj commented Jul 5, 2012

i have an example in the wiki

@Bartvds
Copy link

Bartvds commented Jul 5, 2012

nice, refactors/modularizes nicely from my js-api event workaround. thanks :)

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

No branches or pull requests

4 participants