ember-cli / ember-cli-mocha

Mocha and Chai tests for ember-cli applications
Apache License 2.0
147 stars 54 forks source link

Is there any way to change reporters? #51

Open carloscheddar opened 9 years ago

carloscheddar commented 9 years ago

Changing the reporter in testem.json only lets me choose between the testem reporters instead of the mocha reporters. Is there any way around this?

ef4 commented 9 years ago

I use a custom mocha reporter by placing the reporter itself in tests/helpers/reporter.js, and then in test-helper.js I do:

import Reporter from './helpers/reporter';
mocha.reporter(Reporter);
mmahalwy commented 9 years ago

Any update on this? @ef4 what custom reporter are you using and how are you adding it to that file?

mmahalwy commented 9 years ago

Is there a way to get the qunit look-alike reporter?

image

I get this for mocha:

image

ef4 commented 9 years ago

@mmahalwy I've been using https://github.com/ef4/better-mocha-html-reporter

ballPointPenguin commented 9 years ago

FYI https://github.com/ef4/better-mocha-html-reporter/issues/1

mmahalwy commented 9 years ago

@ef4 I will try these today actually!

@ballPointPenguin I am excited about this - whats the ETA?

ballPointPenguin commented 9 years ago

@mmahalwy I am blocked by https://github.com/ember-cli/ember-cli/pull/4659 (next ember-cli release). But, you can use it right now if you build ember-cli from master and use my fork https://github.com/ballPointPenguin/ember-cli-mocha.

Or, perhaps easier, just follow these directions: https://gist.github.com/elbeezy/d7ab4dda1bea033d646a

mmahalwy commented 9 years ago

@ballPointPenguin any example of this reporter?

ballPointPenguin commented 9 years ago

@mmahalwy Do you mean a live demo, or a screenshot, or what?

mmahalwy commented 9 years ago

Actually @ballPointPenguin i got it - looks badass :)

NullVoxPopuli commented 8 years ago

The instructions 404'd :-(

elbeezi commented 8 years ago

@NullVoxPopuli the custom reporter has gone through various iterations, and my gist became outdated hence the 404. Here's the latest version I'm aware of: https://github.com/mmelvin0/ember-cli-mocha-reporter

Each round of changes has built on ef4's better-mocha-reporter