UNPKG

@testauto/jest-allure

Version:

A Jest Allure Reporter, which takes the test-results from jest and creates an allure-report from it.

21 lines 822 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const testcase_1 = require("./testcase"); const allure_1 = require("./allure"); class Testsuite { constructor(testSuiteResults, jsonResults) { this.testSuiteResults = testSuiteResults; this.startTime = testSuiteResults.perfStats.start; this.stopTime = testSuiteResults.perfStats.end; this.name = testSuiteResults.testFilePath.split(/(\/|\\)/g).pop(); this.testcases = []; this.testSuiteResults.testResults.forEach((testcase) => { this.testcases.push(new testcase_1.Testcase(testcase, jsonResults)); }); } writeToFileAsAllureInput() { allure_1.Allure.generateAllureXMLOutput(this); } } exports.Testsuite = Testsuite; //# sourceMappingURL=testsuite.js.map