Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/adamgruber/mochawesome in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
Adam Gruber committed Jan 19, 2016
2 parents c930397 + b9b86f6 commit 7186625
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
languages:
JavaScript: true
exclude_paths:
- "gulpfile.js"
- "src/js/lodash.custom.js"
- "dist/js/*.js"
- "test/*"
- "lib/templates.js"
8 changes: 5 additions & 3 deletions lib/mochawesome.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ var mocha = require('mocha'),

var Base = mocha.reporters.Base,
generateReport = reportGen.generateReport,
saveToFile = reportGen.saveToFile;

var totalTestsRegistered = 0;
saveToFile = reportGen.saveToFile,
totalTestsRegistered;

Highlight.configure({
useBR: true,
Expand All @@ -30,6 +29,9 @@ module.exports = Mochawesome;
*/

function Mochawesome (runner, options) {
// Reset total tests counter
totalTestsRegistered = 0;

// Create/Save necessary report dirs/files
var reporterOpts = options.reporterOptions || {},
config = conf(reporterOpts);
Expand Down

0 comments on commit 7186625

Please sign in to comment.