ember-cli-iced-mocha
is a (work-in-progress!) Ember addon for exploring the potential of an improved HTML reporter for ember-cli-mocha
.
First, install ember-cli-mocha
:
ember install ember-cli-mocha
Then, install this addon:
ember install ember-cli-iced-mocha
Next, you'll need to set the test reporter to the one included in this addon:
// tests/test-helper.js
import { setResolver } from 'ember-mocha';
import Reporter from 'ember-cli-iced-mocha/reporter';
import resolver from './helpers/resolver';
setResolver(resolver);
window.mocha.reporter((runner) => new Reporter(runner));
- Reach feature parity with the default Mocha HTML reporter
- Add a configurable mechanism for grouping automated test results (such as JSHint or JSCS linting)
- Either automatically extend the consuming app/addon to use a mocha-friendly
testGenerator
function or make it easy for consumers to import one from this addon that will be maintained - Add a extensible mechanism for registering options that can be toggled on/off that should be exposed in the UI comparable to QUnit's
urlConfig
option. Include some options such as the ability to hide passing tests and to hide the container. - If it makes sense, consider/discuss merging this repository to
ember-cli-mocha
- Separate out the code for state management of testing data from the UI code. Explore the potential for making the
tests/index.html
page its own Ember app separate from the app under test.
See CONTRIBUTING.md
.