1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const test_case_result_1 = require("./test-case-result");
|
4 | const get_overall_outcome_1 = require("./get-overall-outcome");
|
5 | class 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 | }
|
20 | exports.TestResults = TestResults;
|
21 |
|
\ | No newline at end of file |