Skip to content

Commit

Permalink
feat(test): add jasmine-spec-reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcody committed Jul 23, 2015
1 parent e2760cf commit f34e8f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
"karma-mocha": "^0.2.0",
"karma-chai-plugins": "^0.6.0",<% } if (filters.jasmine) { %>
"jasmine-core": "^2.3.4",
"karma-jasmine": "~0.3.0",<% } %>
"karma-jasmine": "~0.3.0",
"jasmine-spec-reporter": "^2.4.0",<% } %>
"karma-ng-scenario": "~0.1.0",
"karma-firefox-launcher": "~0.1.3",
"karma-script-launcher": "~0.1.0",
Expand Down
7 changes: 6 additions & 1 deletion app/templates/protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ var config = {
//
// See the full list at https://github.com/jasmine/jasmine-npm
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
defaultTimeoutInterval: 30000,
print: function() {} // for jasmine-spec-reporter
},<% } if (filters.mocha) { %>
// ----- Options to be passed to mocha -----
mochaOpts: {
Expand All @@ -73,6 +74,10 @@ var config = {
'should',
Object.getOwnPropertyDescriptor(Object.prototype, 'should')
);
<% } if (filters.jasmine) { %>
var SpecReporter = require('jasmine-spec-reporter');
// add jasmine spec reporter
jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: true}));
<% } %>
var serverConfig = config.params.serverConfig;<% if (filters.mongoose) { %>

Expand Down

0 comments on commit f34e8f3

Please sign in to comment.