ember-cli-mocha icon indicating copy to clipboard operation
ember-cli-mocha copied to clipboard

Is there any way to change reporters?

Open carloscheddar opened this issue 9 years ago • 12 comments

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?

carloscheddar avatar Apr 29 '15 19:04 carloscheddar

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);

ef4 avatar May 19 '15 17:05 ef4

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

mmahalwy avatar Jun 17 '15 21:06 mmahalwy

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

image

I get this for mocha:

image

mmahalwy avatar Jun 17 '15 22:06 mmahalwy

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

ef4 avatar Jun 18 '15 14:06 ef4

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

ballPointPenguin avatar Aug 06 '15 03:08 ballPointPenguin

@ef4 I will try these today actually!

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

mmahalwy avatar Aug 27 '15 16:08 mmahalwy

@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

ballPointPenguin avatar Aug 27 '15 19:08 ballPointPenguin

@ballPointPenguin any example of this reporter?

mmahalwy avatar Aug 28 '15 21:08 mmahalwy

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

ballPointPenguin avatar Aug 29 '15 20:08 ballPointPenguin

Actually @ballPointPenguin i got it - looks badass :)

mmahalwy avatar Sep 01 '15 22:09 mmahalwy

The instructions 404'd :-(

NullVoxPopuli avatar May 18 '16 11:05 NullVoxPopuli

@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

elbeezi avatar Aug 17 '16 00:08 elbeezi