Set up tests for ember-cli

This commit is contained in:
Jason Williams 2015-02-18 14:02:48 -06:00 committed by Matt Enlow
parent 9e7658f98d
commit 0b96765321
13 changed files with 11 additions and 12 deletions

View File

@ -319,6 +319,11 @@ var _ = require('lodash'),
return './node_modules/.bin/ember build --environment=production --silent'
case 'dev':
return './node_modules/.bin/ember build --silent';
case 'test':
return './node_modules/.bin/ember test --silent';
default:
return './node_modules/.bin/ember build --silent';
}
@ -341,14 +346,6 @@ var _ = require('lodash'),
}
},
testem: {
command: path.resolve(cwd + '/node_modules/.bin/testem ci -f core/test/client/testem.json'),
options: {
stdout: true,
stdin: false
}
},
test: {
command: function (test) {
return 'node ' + mochaPath + ' --timeout=15000 --ui=bdd --reporter=spec core/test/' + test;
@ -631,8 +628,12 @@ var _ = require('lodash'),
// details of each of the test suites.
//
grunt.registerTask('test-all', 'Run tests and lint code',
<<<<<<< HEAD
['lint', 'test-routes', 'test-module', 'test-unit', 'test-integration', 'test-functional', 'shell:testem']
);
=======
['jshint', 'jscs', 'test-routes', 'test-module', 'test-unit', 'test-integration', 'shell:ember:test', 'test-functional']);
>>>>>>> Set up tests for ember-cli
// ### Lint
//

View File

@ -30,7 +30,7 @@
"ember-cli-htmlbars": "^0.7.4",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.3.7",
"ember-cli-mocha": "^0.4.2",
"ember-cli-sass": "3.1.0-beta",
"ember-cli-uglify": "1.0.1",
"ember-data": "1.0.0-beta.14.1",

View File

@ -1,6 +1,4 @@
import resolver from './helpers/resolver';
import {
setResolver
} from 'ember-qunit';
import { setResolver } from 'ember-mocha';
setResolver(resolver);