diff --git a/lib/reporters/html.js b/lib/reporters/html.js
index 5167d18bfc..51ba1ca722 100644
--- a/lib/reporters/html.js
+++ b/lib/reporters/html.js
@@ -125,6 +125,7 @@ function HTML(runner) {
runner.on('suite end', function(suite) {
if (suite.root) {
+ updateStats();
return;
}
stack.shift();
@@ -195,7 +196,7 @@ function HTML(runner) {
function updateStats() {
// TODO: add to stats
- var percent = stats.tests / this.total * 100 | 0;
+ var percent = stats.tests / runner.total * 100 | 0;
if (progress) {
progress.update(percent).draw(ctx);
}