Sha256: b9a73bb966be2e5950e51317b014cbe8a020e59ab8e4eb7d3cebaade993c4ca6
Contents?: true
Size: 1.49 KB
Versions: 2
Compression:
Stored size: 1.49 KB
Contents
#= require qunit-1.11.0 #= require teabag/base/teabag #= require teabag/qunit/reporters/console #= require teabag/qunit/reporters/html class Teabag.Runner extends Teabag.Runner constructor: -> super env.start() setup: -> new (@getReporter())(env) class Teabag.Spec constructor: (@spec) -> @fullDescription = "#{@spec.module} #{@spec.name}" @description = "#{@spec.name} (#{@spec.failed}, #{@spec.passed}, #{@spec.total})" @link = "?grep=#{encodeURIComponent("#{@spec.module}: #{@spec.name}")}" @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 # set the environment env = QUnit env.config.autostart = false env.config.altertitle = false env.config.filter = Teabag.Runner.prototype.getParams()["grep"] window.fixture = Teabag.fixture originalReset = env.reset env.reset = -> originalReset() Teabag.fixture.cleanup()
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
teabag-0.7.3 | app/assets/javascripts/teabag/qunit.coffee |
teabag-0.7.2 | app/assets/javascripts/teabag/qunit.coffee |