UNPKG

774 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const test_case_result_1 = require("./test-case-result");
4const get_overall_outcome_1 = require("./get-overall-outcome");
5class TestResults {
6 constructor(fixtureResult, test) {
7 this.fixtureResult = fixtureResult;
8 this.test = test;
9 this._testCaseResults = [];
10 }
11 get outcome() {
12 return get_overall_outcome_1.getOverallOutcome(this._testCaseResults);
13 }
14 addTestCaseResult(args, error = null) {
15 const testCaseResult = new test_case_result_1.TestCaseResult(this, args, error);
16 this._testCaseResults.push(testCaseResult);
17 return testCaseResult;
18 }
19}
20exports.TestResults = TestResults;
21//# sourceMappingURL=test-results.js.map
\No newline at end of file