Subtract skipped count from complete and total counts

This commit is contained in:
Kevin Sawicki
2013-02-12 15:52:00 -08:00
parent 07c5a94613
commit 8922a27eb3

View File

@@ -84,8 +84,10 @@ class AtomReporter extends View
if @failedCount > 0
@status.addClass('failed') unless @status.hasClass('failed')
specCount = "#{@completeSpecCount}/#{@totalSpecCount}"
specCount += " (skipping #{@skippedCount})" if @skippedCount
if @skippedCount
specCount = "#{@completeSpecCount - @skippedCount}/#{@totalSpecCount - @skippedCount} (#{@skippedCount} skipped)"
else
specCount = "#{@completeSpecCount}/#{@totalSpecCount}"
@specCount.text specCount
rootSuite = spec.suite