1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const test_results_1 = require("./test-results");
|
4 | const get_overall_outcome_1 = require("./get-overall-outcome");
|
5 | class TestFixtureResults {
|
6 | constructor(_testFixture) {
|
7 | this._testFixture = _testFixture;
|
8 | this._testResults = [];
|
9 | }
|
10 | get testResults() {
|
11 | return this._testResults;
|
12 | }
|
13 | get fixture() {
|
14 | return this._testFixture;
|
15 | }
|
16 | get outcome() {
|
17 | return get_overall_outcome_1.getOverallOutcome(this._testResults);
|
18 | }
|
19 | addTestResult(test) {
|
20 | const testResults = new test_results_1.TestResults(this, test);
|
21 | this._testResults.push(testResults);
|
22 | return testResults;
|
23 | }
|
24 | }
|
25 | exports.TestFixtureResults = TestFixtureResults;
|
26 |
|
\ | No newline at end of file |