Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-allure2-adapter

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-allure2-adapter - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

3

dist/allure-reporter.d.ts

@@ -14,2 +14,5 @@ /// <reference types="node" />

private featureProps;
private frameworkProps;
private languageProps;
private hostProps;
private environmentInfo;

@@ -16,0 +19,0 @@ private test_;

19

dist/allure-reporter.js

@@ -31,2 +31,5 @@ "use strict";

this.featureProps = new test_suite_props_1.TestSuiteProps();
this.frameworkProps = new test_suite_props_1.TestSuiteProps();
this.languageProps = new test_suite_props_1.TestSuiteProps();
this.hostProps = new test_suite_props_1.TestSuiteProps();
this.environmentInfo = {};

@@ -76,2 +79,7 @@ this.test_ = new allure_current_1.AllureCurrent(this.runtime, () => this.currentTest);

}
this.framework('jest');
this.language('typescript/javascript');
const os = require('os');
const hostname = os.hostname();
this.host(hostname);
this.applyGroupping();

@@ -162,4 +170,7 @@ }

this.storyProps.apply((a) => super.story(a));
this.frameworkProps.apply((a) => super.label(allure_js_commons_1.LabelName.FRAMEWORK, a));
this.languageProps.apply((a) => super.label(allure_js_commons_1.LabelName.LANGUAGE, a));
this.hostProps.apply((a) => super.label(allure_js_commons_1.LabelName.HOST, a));
this.applyDescription();
if (((_a = this.config) === null || _a === void 0 ? void 0 : _a.historyIdByName) !== false) {
if (((_a = this.config) === null || _a === void 0 ? void 0 : _a.autoHistoryId) !== false) {
this.setHistoryId(spec.fullName);

@@ -311,6 +322,6 @@ }

framework(framework) {
super.label(allure_js_commons_1.LabelName.FRAMEWORK, framework);
this.frameworkProps.testProp = framework;
}
language(language) {
super.label(allure_js_commons_1.LabelName.LANGUAGE, language);
this.languageProps.testProp = language;
}

@@ -321,3 +332,3 @@ as_id(id) {

host(host) {
super.label(allure_js_commons_1.LabelName.HOST, host);
this.hostProps.testProp = host;
}

@@ -324,0 +335,0 @@ testClass(testClass) {

@@ -87,3 +87,3 @@ /// <reference types="node" />

addStepStatusDetailsAttachment?: boolean;
historyIdByName?: boolean;
autoHistoryId?: boolean;
tmsLink?: (id: string) => string;

@@ -90,0 +90,0 @@ issueLink?: (id: string) => string;

{
"name": "jest-allure2-adapter",
"version": "0.3.6",
"version": "0.3.7",
"description": "Allure 2 Adapter for jest",

@@ -5,0 +5,0 @@ "main": "./dist/index",

@@ -145,2 +145,5 @@ # Jest-Allure-2 reporting plugin

setFullName(fullName: string): void;
setHistoryId(uid: string): void;
addPackage(value: string): this;

@@ -293,6 +296,9 @@ addLink(options: { name?: string; url: string; type?: LinkType }): this;

#### 0.3.6:
#### 0.3.7:
- framework label = 'jest' to tests by default (can be overridden)
- language label = 'typescript/javascript' to tests by default (can be overridden)
- host label to tests by default (can be overridden)
- ability to setup historyId and fullName
- added historyIdByName into config (when false need to setup historyId manually to have correct retries, by default it is true and historyId is being generated by spec full name)
- added autoHistoryId into config (when false need to setup historyId manually to have correct retries, by default it is true and historyId is being generated from spec full name)

@@ -299,0 +305,0 @@ #### 0.3.5:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc