0.1.1 • Published 9 years ago
ember-cli-nodetests v0.1.1
ember-cli-nodetests
An EmberCLI addon to add the capability to run node tests to your addon
Motivation
Often times, when creating an EmberCLI addon that extends EmberCLI
functionality, as opposed to the consuming ember app functionality, the ability
to test the node lib files created outside of the context of the app directory
is required. There are a few boilerplate things that need to be installed and
configured in order to get these tests running and this addon automates that.
This addon is designed to be used in addons that only provide node functionality that extend EmberCLI. You can see examples of these sorts of addons by looking at any of the ember-cli-deploy plugins.
What does this addon do?
This addon will:
- Add node testing dependencies:
chai,chai-as-promised,mochaandmoch-jshint - Create a jshint node test
- Configure an npm
testscript that will run all**/*-nodetest.jsfiles within in the tests directory
Installation
Install with EmberCLI:
$ ember install ember-cli-nodetestsor with NPM:
$ npm install --save-dev ember-cli-nodetests
$ ember generate ember-cli-nodetestsRun your new node tests:
$ npm test