Log total spec time when done

This commit is contained in:
Kevin Sawicki
2013-10-11 14:46:26 -07:00
parent 01380c307e
commit 4549ea2058

View File

@@ -53,6 +53,8 @@ module.exports = (grunt) ->
grunt.registerTask 'run-specs', 'Run the specs', ->
done = @async()
startTime = Date.now()
async.parallel [runCoreSpecs, runPackageSpecs], (error, results) ->
[coreSpecPassed, packageSpecsPassed] = results
grunt.log.writeln("Total spec time: #{(Date.now() - startTime)/1000}s")
done(coreSpecPassed and packageSpecsPassed)