allure-js-commons
Advanced tools
Comparing version 2.0.0-beta.6 to 2.0.0-beta.7
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var AllureRuntime_1 = require("./src/AllureRuntime"); | ||
exports.AllureRuntime = AllureRuntime_1.AllureRuntime; | ||
Object.defineProperty(exports, "AllureRuntime", { enumerable: true, get: function () { return AllureRuntime_1.AllureRuntime; } }); | ||
var writers_1 = require("./src/writers"); | ||
exports.InMemoryAllureWriter = writers_1.InMemoryAllureWriter; | ||
Object.defineProperty(exports, "InMemoryAllureWriter", { enumerable: true, get: function () { return writers_1.InMemoryAllureWriter; } }); | ||
var AllureConfig_1 = require("./src/AllureConfig"); | ||
exports.AllureConfig = AllureConfig_1.AllureConfig; | ||
Object.defineProperty(exports, "AllureConfig", { enumerable: true, get: function () { return AllureConfig_1.AllureConfig; } }); | ||
var AllureGroup_1 = require("./src/AllureGroup"); | ||
exports.AllureGroup = AllureGroup_1.AllureGroup; | ||
Object.defineProperty(exports, "AllureGroup", { enumerable: true, get: function () { return AllureGroup_1.AllureGroup; } }); | ||
var ExecutableItemWrapper_1 = require("./src/ExecutableItemWrapper"); | ||
exports.ExecutableItemWrapper = ExecutableItemWrapper_1.ExecutableItemWrapper; | ||
Object.defineProperty(exports, "ExecutableItemWrapper", { enumerable: true, get: function () { return ExecutableItemWrapper_1.ExecutableItemWrapper; } }); | ||
var AllureTest_1 = require("./src/AllureTest"); | ||
exports.AllureTest = AllureTest_1.AllureTest; | ||
Object.defineProperty(exports, "AllureTest", { enumerable: true, get: function () { return AllureTest_1.AllureTest; } }); | ||
var ExecutableItemWrapper_2 = require("./src/ExecutableItemWrapper"); | ||
exports.AllureStep = ExecutableItemWrapper_2.AllureStep; | ||
Object.defineProperty(exports, "AllureStep", { enumerable: true, get: function () { return ExecutableItemWrapper_2.AllureStep; } }); | ||
var isPromise_1 = require("./src/isPromise"); | ||
exports.isPromise = isPromise_1.isPromise; | ||
Object.defineProperty(exports, "isPromise", { enumerable: true, get: function () { return isPromise_1.isPromise; } }); | ||
var Allure_1 = require("./src/Allure"); | ||
exports.Allure = Allure_1.Allure; | ||
Object.defineProperty(exports, "Allure", { enumerable: true, get: function () { return Allure_1.Allure; } }); | ||
var model_1 = require("./src/model"); | ||
exports.ContentType = model_1.ContentType; | ||
exports.LabelName = model_1.LabelName; | ||
exports.Severity = model_1.Severity; | ||
exports.Stage = model_1.Stage; | ||
exports.Status = model_1.Status; | ||
exports.LinkType = model_1.LinkType; | ||
Object.defineProperty(exports, "ContentType", { enumerable: true, get: function () { return model_1.ContentType; } }); | ||
Object.defineProperty(exports, "LabelName", { enumerable: true, get: function () { return model_1.LabelName; } }); | ||
Object.defineProperty(exports, "Severity", { enumerable: true, get: function () { return model_1.Severity; } }); | ||
Object.defineProperty(exports, "Stage", { enumerable: true, get: function () { return model_1.Stage; } }); | ||
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return model_1.Status; } }); | ||
Object.defineProperty(exports, "LinkType", { enumerable: true, get: function () { return model_1.LinkType; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -9,4 +9,4 @@ /// <reference types="node" /> | ||
protected runtime: AllureRuntime; | ||
protected abstract readonly currentTest: AllureTest; | ||
protected abstract readonly currentExecutable: ExecutableItemWrapper; | ||
protected abstract get currentTest(): AllureTest; | ||
protected abstract get currentExecutable(): ExecutableItemWrapper; | ||
protected constructor(runtime: AllureRuntime); | ||
@@ -13,0 +13,0 @@ epic(epic: string): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Allure = void 0; | ||
const model_1 = require("./model"); | ||
@@ -4,0 +5,0 @@ const model_2 = require("./model"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AllureConfig = void 0; | ||
class AllureConfig { | ||
@@ -4,0 +5,0 @@ constructor(resultsDir = "allure-results", testMapper, writer) { |
@@ -11,6 +11,7 @@ import { ExecutableItemWrapper } from "./ExecutableItemWrapper"; | ||
endGroup(): void; | ||
readonly uuid: string; | ||
name: string; | ||
get uuid(): string; | ||
get name(): string; | ||
set name(name: string); | ||
addBefore(): ExecutableItemWrapper; | ||
addAfter(): ExecutableItemWrapper; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AllureGroup = void 0; | ||
const ExecutableItemWrapper_1 = require("./ExecutableItemWrapper"); | ||
@@ -4,0 +5,0 @@ const AllureTest_1 = require("./AllureTest"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AllureRuntime = void 0; | ||
const uuid_1 = require("uuid"); | ||
@@ -4,0 +5,0 @@ const AllureGroup_1 = require("./AllureGroup"); |
@@ -8,7 +8,7 @@ import { ExecutableItemWrapper } from "./ExecutableItemWrapper"; | ||
endTest(): void; | ||
readonly uuid: string; | ||
historyId: string; | ||
fullName: string; | ||
get uuid(): string; | ||
set historyId(id: string); | ||
set fullName(fullName: string); | ||
addLabel(name: string, value: string): void; | ||
addLink(url: string, name?: string, type?: string): void; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AllureTest = void 0; | ||
const ExecutableItemWrapper_1 = require("./ExecutableItemWrapper"); | ||
@@ -4,0 +5,0 @@ const constructors_1 = require("./constructors"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.testResult = exports.stepResult = exports.fixtureResult = exports.testResultContainer = void 0; | ||
const model_1 = require("./model"); | ||
@@ -4,0 +5,0 @@ const uuid_1 = require("uuid"); |
@@ -5,11 +5,12 @@ import { StatusDetails, StepResult, FixtureResult, TestResult, Status, Stage, ContentType } from "./model"; | ||
constructor(info: FixtureResult | TestResult); | ||
protected readonly wrappedItem: FixtureResult | TestResult; | ||
name: string; | ||
description: string; | ||
descriptionHtml: string; | ||
status: Status | undefined; | ||
statusDetails: StatusDetails; | ||
detailsMessage: string; | ||
detailsTrace: string; | ||
stage: Stage; | ||
protected get wrappedItem(): FixtureResult | TestResult; | ||
set name(name: string); | ||
set description(description: string); | ||
set descriptionHtml(descriptionHtml: string); | ||
set status(status: Status | undefined); | ||
get status(): Status | undefined; | ||
set statusDetails(details: StatusDetails); | ||
set detailsMessage(message: string); | ||
set detailsTrace(trace: string); | ||
set stage(stage: Stage); | ||
addParameter(name: string, value: string): void; | ||
@@ -16,0 +17,0 @@ addAttachment(name: string, type: ContentType, fileName: string): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AllureStep = exports.ExecutableItemWrapper = void 0; | ||
const model_1 = require("./model"); | ||
@@ -4,0 +5,0 @@ const isPromise_1 = require("./isPromise"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isPromise = void 0; | ||
function isPromise(obj) { | ||
@@ -4,0 +5,0 @@ return !!obj && (typeof obj === "object" || typeof obj === "function") |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LinkType = exports.ContentType = exports.Severity = exports.LabelName = exports.Stage = exports.Status = void 0; | ||
var Status; | ||
@@ -4,0 +5,0 @@ (function (Status) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AllureWriter = void 0; | ||
const path_1 = require("path"); | ||
@@ -4,0 +5,0 @@ const mkdirp_1 = require("mkdirp"); |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var AllureWriter_1 = require("./AllureWriter"); | ||
exports.AllureWriter = AllureWriter_1.AllureWriter; | ||
Object.defineProperty(exports, "AllureWriter", { enumerable: true, get: function () { return AllureWriter_1.AllureWriter; } }); | ||
var InMemoryAllureWriter_1 = require("./InMemoryAllureWriter"); | ||
exports.InMemoryAllureWriter = InMemoryAllureWriter_1.InMemoryAllureWriter; | ||
__export(require("./utils")); | ||
Object.defineProperty(exports, "InMemoryAllureWriter", { enumerable: true, get: function () { return InMemoryAllureWriter_1.InMemoryAllureWriter; } }); | ||
__exportStar(require("./utils"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -18,2 +18,4 @@ /// <reference types="node" /> | ||
getTestByName(name: string): TestResult; | ||
getMaybeGroupByName(name: string): TestResultContainer | undefined; | ||
getGroupByName(name: string): TestResultContainer; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InMemoryAllureWriter = void 0; | ||
class InMemoryAllureWriter { | ||
@@ -40,8 +41,17 @@ constructor() { | ||
const res = this.getMaybeTestByName(name); | ||
if (res === undefined) | ||
if (!res) | ||
throw new Error(`Test not found: ${name}`); | ||
return res; | ||
} | ||
getMaybeGroupByName(name) { | ||
return this.groups.find(g => g.name === name); | ||
} | ||
getGroupByName(name) { | ||
const res = this.getMaybeGroupByName(name); | ||
if (!res) | ||
throw new Error(`Group not found: ${name}`); | ||
return res; | ||
} | ||
} | ||
exports.InMemoryAllureWriter = InMemoryAllureWriter; | ||
//# sourceMappingURL=InMemoryAllureWriter.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.typeToExtension = void 0; | ||
const model_1 = require("../model"); | ||
@@ -4,0 +5,0 @@ function typeToExtension(type) { |
{ | ||
"name": "allure-js-commons", | ||
"version": "2.0.0-beta.6", | ||
"version": "2.0.0-beta.7", | ||
"description": "Allure JS Commons", | ||
@@ -9,2 +9,3 @@ "license": "Apache-2.0", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
@@ -20,3 +21,3 @@ "clean": "rimraf ./dist", | ||
"@types/mkdirp": "^0.5.2", | ||
"@types/uuid": "^3.4.4" | ||
"@types/uuid": "^7.0.0" | ||
}, | ||
@@ -26,5 +27,5 @@ "dependencies": { | ||
"properties": "^1.2.1", | ||
"uuid": "^3.3.2" | ||
"uuid": "^7.0.2" | ||
}, | ||
"gitHead": "fdcb2b0cccae08b1b3ae5838a11891150b256f8c" | ||
"gitHead": "79d3a6088a035d4310c1997aa897839ed5d9be4e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63334
937
+ Addeduuid@7.0.3(transitive)
- Removeduuid@3.4.0(transitive)
Updateduuid@^7.0.2