Sha256: 37bff6ce34cde735853a0c97d1986d8edddcfed936bc96f9b8f2f60c222de641
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
#= require qunit-1.10.0 #= require teabag/base/teabag #= require teabag/qunit/reporters/console #= require teabag/qunit/reporters/html class Teabag.Runner extends Teabag.Runner env = QUnit env.config.autostart = false env.config.altertitle = false constructor: -> super env.start() setup: -> reporter = new (@getReporter())(env) reporter.setFilter?(@params["grep"]) class Teabag.Spec constructor: (@spec) -> @fullDescription = "#{@spec.module} #{@spec.name}" @description = "#{@spec.name} (#{@spec.failed}, #{@spec.passed}, #{@spec.total})" @link = "?grep=#{encodeURIComponent(@fullDescription)}" @parent = if @spec.module then new Teabag.Suite({description: @spec.module}) else null @suiteName = @spec.module @viewId = @spec.viewId @pending = false errors: -> return [] unless @spec.failed for item in @spec.assertions continue if item.result {message: item.message, stack: item.source} getParents: -> return [] unless @parent [@parent] result: -> status = "failed" status = "passed" unless @spec.failed status: status skipped: false class Teabag.Suite constructor: (@suite) -> @fullDescription = @suite.description @description = @suite.description @link = "?grep=#{encodeURIComponent(@fullDescription)}" @parent = null
Version data entries
4 entries across 4 versions & 1 rubygems