allure-js-commons
Advanced tools
Comparing version 2.0.0-beta.19 to 2.0.0-beta.20
@@ -10,2 +10,2 @@ export { AllureRuntime } from "./src/AllureRuntime"; | ||
export { Allure, StepInterface } from "./src/Allure"; | ||
export { AttachmentOptions, Attachment, Category, StepResult, Parameter, StatusDetails, Link, Label, ExecutorInfo, TestResultContainer, FixtureResult, TestResult, ContentType, LabelName, Severity, Stage, Status, LinkType, ParameterOptions } from "./src/model"; | ||
export { AttachmentOptions, AttachmentMetadata, Attachment, Category, ExecutableItem, StepResult, Parameter, StatusDetails, Link, Label, ExecutorInfo, TestResultContainer, FixtureResult, TestResult, ContentType, LabelName, Severity, Stage, Status, LinkType, ParameterOptions } from "./src/model"; |
@@ -11,2 +11,3 @@ import { AllureRuntime } from "./AllureRuntime"; | ||
set fullName(fullName: string); | ||
set testCaseId(testCaseId: string); | ||
addLabel(name: string, value: string): void; | ||
@@ -13,0 +14,0 @@ addLink(url: string, name?: string, type?: string): void; |
@@ -27,2 +27,5 @@ "use strict"; | ||
} | ||
set testCaseId(testCaseId) { | ||
this.testResult.testCaseId = testCaseId; | ||
} | ||
addLabel(name, value) { | ||
@@ -29,0 +32,0 @@ this.testResult.labels.push({ name, value }); |
@@ -1,2 +0,2 @@ | ||
import { AttachmentOptions, ContentType, FixtureResult, ParameterOptions, Stage, Status, StatusDetails, StepResult, TestResult } from "./model"; | ||
import { AttachmentOptions, ContentType, ExecutableItem, FixtureResult, ParameterOptions, Stage, Status, StatusDetails, StepResult, TestResult } from "./model"; | ||
export declare class ExecutableItemWrapper { | ||
@@ -19,2 +19,3 @@ private readonly info; | ||
wrap<T>(fun: (...args: any[]) => T): (...args: any[]) => T; | ||
addStep(step: ExecutableItem): void; | ||
} | ||
@@ -21,0 +22,0 @@ export declare class AllureStep extends ExecutableItemWrapper { |
@@ -98,2 +98,5 @@ "use strict"; | ||
} | ||
addStep(step) { | ||
this.info.steps.push(step); | ||
} | ||
} | ||
@@ -100,0 +103,0 @@ exports.ExecutableItemWrapper = ExecutableItemWrapper; |
@@ -0,1 +1,2 @@ | ||
export declare const ALLURE_METADATA_CONTENT_TYPE = "application/vnd.allure.metadata+json"; | ||
export interface Attachment { | ||
@@ -6,2 +7,8 @@ name: string; | ||
} | ||
export interface AttachmentMetadata { | ||
labels?: Label[]; | ||
links?: Link[]; | ||
description?: string; | ||
parameter?: Parameter[]; | ||
} | ||
export interface AttachmentOptions { | ||
@@ -31,3 +38,3 @@ contentType: ContentType | string; | ||
} | ||
interface ExecutableItem { | ||
export interface ExecutableItem { | ||
name?: string; | ||
@@ -124,2 +131,3 @@ status?: Status; | ||
XML = "application/xml", | ||
HTML = "text/html", | ||
CSV = "text/csv", | ||
@@ -140,2 +148,1 @@ TSV = "text/tab-separated-values", | ||
} | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LinkType = exports.ContentType = exports.Severity = exports.LabelName = exports.Stage = exports.Status = void 0; | ||
exports.LinkType = exports.ContentType = exports.Severity = exports.LabelName = exports.Stage = exports.Status = exports.ALLURE_METADATA_CONTENT_TYPE = void 0; | ||
exports.ALLURE_METADATA_CONTENT_TYPE = "application/vnd.allure.metadata+json"; | ||
var Status; | ||
@@ -52,2 +53,3 @@ (function (Status) { | ||
ContentType["XML"] = "application/xml"; | ||
ContentType["HTML"] = "text/html"; | ||
ContentType["CSV"] = "text/csv"; | ||
@@ -54,0 +56,0 @@ ContentType["TSV"] = "text/tab-separated-values"; |
@@ -14,2 +14,4 @@ "use strict"; | ||
return "xml"; | ||
case model_1.ContentType.HTML: | ||
return "html"; | ||
case model_1.ContentType.CSV: | ||
@@ -16,0 +18,0 @@ return "csv"; |
{ | ||
"name": "allure-js-commons", | ||
"version": "2.0.0-beta.19", | ||
"version": "2.0.0-beta.20", | ||
"description": "Allure JS Commons", | ||
@@ -10,2 +10,14 @@ "license": "Apache-2.0", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
"./internal": { | ||
"import": "./dist/internal.js", | ||
"require": "./dist/internal.js", | ||
"types": "./dist/internal.d.ts" | ||
} | ||
}, | ||
"scripts": { | ||
@@ -25,3 +37,3 @@ "clean": "rimraf ./dist", | ||
"@types/uuid": "^8.3.0", | ||
"allure-mocha": "2.0.0-beta.19", | ||
"allure-mocha": "2.0.0-beta.20", | ||
"chai": "^4.3.4", | ||
@@ -28,0 +40,0 @@ "eslint": "^7.32.0", |
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
70111
51
1010