Sha256: ce20c4175f54aa28272ef1d4a5c9e0ae05834d7f8b06ba4ada8020a8be44a0fd
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
class Teaspoon.Qunit.Responder constructor: (qunit, @reporter) -> version = Teaspoon.Qunit.version() if version.major = 1 && version.minor > 15 qunit.begin(@runnerStarted) else # QUnit's .begin hook was broken @reporter.reportRunnerStarting(total: null) qunit.done(@runnerDone) qunit.moduleStart(@suiteStarted) qunit.moduleDone(@suiteDone) qunit.testDone(@specDone) qunit.log(@assertionDone) @assertions = [] runnerStarted: (runner) => @reporter.reportRunnerStarting(total: runner.totalTests) runnerDone: (runner) => @reporter.reportRunnerResults(runner) suiteStarted: (suite) => @reporter.reportSuiteStarting(new Teaspoon.Qunit.Suite(suite)) suiteDone: (suite) => @reporter.reportSuiteResults(new Teaspoon.Qunit.Suite(suite)) specDone: (spec) => spec.assertions = @assertions @assertions = [] # QUnit doesn't have details about the spec until it's finished. So we # wait until it's finished to report that it started. spec = new Teaspoon.Qunit.Spec(spec) @reporter.reportSpecStarting(spec) @reporter.reportSpecResults(spec) assertionDone: (assertion) => @assertions.push(assertion)
Version data entries
3 entries across 3 versions & 1 rubygems