Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Is there any way to change reporters? #51

Open
carloscheddar opened this issue Apr 29, 2015 · 12 comments
Open

Is there any way to change reporters? #51

carloscheddar opened this issue Apr 29, 2015 · 12 comments
Labels

Comments

@carloscheddar
Copy link

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
Copy link
Contributor

ef4 commented May 19, 2015

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
Copy link

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

@mmahalwy
Copy link

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

image

I get this for mocha:

image

@ef4
Copy link
Contributor

ef4 commented Jun 18, 2015

@ballPointPenguin
Copy link
Contributor

@mmahalwy
Copy link

@ef4 I will try these today actually!

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

@ballPointPenguin
Copy link
Contributor

@mmahalwy I am blocked by ember-cli/ember-cli#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
Copy link

@ballPointPenguin any example of this reporter?

@ballPointPenguin
Copy link
Contributor

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

@mmahalwy
Copy link

mmahalwy commented Sep 1, 2015

Actually @ballPointPenguin i got it - looks badass :)

@NullVoxPopuli
Copy link

The instructions 404'd :-(

@elbeezi
Copy link

elbeezi commented Aug 17, 2016

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants