code: function() {
        // Log results.
        // NOTE: do not fail the task if 'force' option was specified
        if (status.failed > 0) {
          var failMsg = (status.failed + '/' + status.total + ' assertions failed (' + status.duration + 'ms)');
          if (options.force) {
            grunt.log.warn(failMsg);
            grunt.log.writeln("\nExecution continues as option 'force' was set");
          } else {
            grunt.fail.warn(failMsg);
          }
        } else if (status.total === 0) {
          grunt.fail.warn('0/0 assertions ran (' + status.duration + 'ms)');
        } else {
          grunt.log.writeln();
          grunt.log.ok(status.total + ' assertions passed (' + status.duration + 'ms)');
        }
        // teardown: remove events handlers
        if (disposables.length) {
          disposables.forEach(function (item) {
            phantomjs.off(item[0], item[1]);
          });
        }
        // All done!
        done();
      }
docs: All tests have been run.