diff --git a/changelog.md b/changelog.md index 1f7cfbf..b8444f4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ #Changelog +###1.2.1 +- Reset `totalTestsRegistered` when reporter is run. [PR #21](https://github.com/adamgruber/mochawesome/pull/21) + ###1.2.0 - Enhancement: custom report title option. Closes [#11](https://github.com/adamgruber/mochawesome/issues/11) - Fixed indentation in code block and stack traces diff --git a/lib/mochawesome.js b/lib/mochawesome.js index 8bc0f48..4a90cfc 100755 --- a/lib/mochawesome.js +++ b/lib/mochawesome.js @@ -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, @@ -30,7 +29,7 @@ module.exports = Mochawesome; */ function Mochawesome (runner, options) { - // reset total tests counter + // Reset total tests counter totalTestsRegistered = 0; // Create/Save necessary report dirs/files diff --git a/package.json b/package.json index 42a08b0..6ff97e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mochawesome", - "version": "1.2.0", + "version": "1.2.1", "description": "A Gorgeous HTML/CSS Reporter for Mocha.js", "scripts": { "test": "gulp build"