Sha256: eb395bce8ff008c7529880afc00e3915dc0c4088612395a3051131f59a44200f
Contents?: true
Size: 1009 Bytes
Versions: 6
Compression:
Stored size: 1009 Bytes
Contents
#= require jasmine-1.3.0 #= require teabag/base/teabag #= require_tree ./jasmine/reporters class Teabag.Runner extends Teabag.Runner env = jasmine.getEnv() constructor: -> super env.execute() setup: -> env.updateInterval = 1000 # add the spec filter if grep = @params["grep"] env.specFilter = (spec) -> return spec.getFullName().indexOf(grep) == 0 # add the reporter and set the filter if navigator.userAgent.match(/PhantomJS/) reporter = new Teabag.Reporters.Console() else reporter = new Teabag.Reporters.HTML() reporter.setFilter?(@params["grep"]) env.addReporter(reporter) # add fixture support @addFixtureSupport() addFixtureSupport: -> return unless jasmine.getFixtures && @fixturePath jasmine.getFixtures().containerId = "teabag-fixtures" jasmine.getFixtures().fixturesPath = @fixturePath jasmine.getStyleFixtures().fixturesPath = @fixturePath jasmine.getJSONFixtures().fixturesPath = @fixturePath
Version data entries
6 entries across 6 versions & 1 rubygems