jest-allure2
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "jest-allure2", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Allure Reports for jest", | ||
"main": "dist/src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"author": "Ryan Parker", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -5,4 +5,3 @@ # Jest-Allure2 | ||
[![NPM](https://nodei.co/npm/jest-allure2.png)](https://nodei.co/npm/jest-allure2/) | ||
[![npm version](https://badge.fury.io/js/jest-allure2.svg)](https://badge.fury.io/js/jest-allure2) | ||
![Continuous Integration](https://github.com/ryparker/jest-allure2/workflows/Continuous%20Integration/badge.svg) | ||
@@ -17,3 +16,3 @@ ![Continuous Deployment](https://github.com/ryparker/jest-allure2/workflows/Continuous%20Deployment/badge.svg) | ||
Originally forked from [jest-allure](https://github.com/zaqqaz/jest-allure), this project uses the latest allure configuration `^2.0.0-beta.6`. | ||
Originally forked from [jest-allure](https://github.com/zaqqaz/jest-allure), this project uses the latest allure configuration `^2.0.0-beta.6`. | ||
@@ -51,3 +50,3 @@ [Allure Framework](https://github.com/allure-framework/allure2) is a flexible lightweight multi-language test report tool that not only | ||
```js | ||
var {registerAllure} = require('jest-allure2') | ||
var { registerAllure } = require('jest-allure2') | ||
@@ -97,39 +96,38 @@ registerAllure() | ||
function sum(a: number, b: number): number { | ||
return a + b | ||
return a + b | ||
} | ||
// Tests | ||
describe("Number functions", () => { | ||
beforeEach('Setup', ()=>{ | ||
allure.severity(Severity.Critical) | ||
allure.feature(Feature.Billing) | ||
allure.story("BILL-217") | ||
}) | ||
describe('Number functions', () => { | ||
beforeEach('Setup', () => { | ||
allure.severity(Severity.Critical) | ||
allure.feature(Feature.Billing) | ||
allure.story('BILL-217') | ||
}) | ||
test("sum performs addition functionality", () => { | ||
allure.description("Tests should be ran when billing functionality is changed.") | ||
test('sum performs addition functionality', () => { | ||
allure.description('Tests should be ran when billing functionality is changed.') | ||
allure.step("Two integers can be added together.", () => { | ||
allure.parameter('a', 3) | ||
allure.parameter('b', 4) | ||
expect(sum(3,4)).toBe(7) | ||
}) | ||
allure.step('Two integers can be added together.', () => { | ||
allure.parameter('a', 3) | ||
allure.parameter('b', 4) | ||
expect(sum(3, 4)).toBe(7) | ||
}) | ||
allure.step("Two floats can be added together", () => { | ||
allure.parameter('a', 3.141) | ||
allure.parameter('b', 2.571) | ||
expect(sum(3.141, 2.571)).toBe(5.712) | ||
}) | ||
allure.step('Two floats can be added together', () => { | ||
allure.parameter('a', 3.141) | ||
allure.parameter('b', 2.571) | ||
expect(sum(3.141, 2.571)).toBe(5.712) | ||
}) | ||
allure.step("Two objects can be added together", () => { | ||
const a = {"a": 1} | ||
const b = {"b": 2} | ||
allure.step('Two objects can be added together', () => { | ||
const a = { a: 1 } | ||
const b = { b: 2 } | ||
allure.parameter('a', a) | ||
allure.parameter('b', b) | ||
expect(sum(a, b)).toMatchSnapshot() | ||
}) | ||
}); | ||
}); | ||
allure.parameter('a', a) | ||
allure.parameter('b', b) | ||
expect(sum(a, b)).toMatchSnapshot() | ||
}) | ||
}) | ||
}) | ||
``` | ||
@@ -150,8 +148,8 @@ | ||
var resultsDir = 'allure-results' | ||
var environmentInfo = {"Username": "User-1331", "password": "password-1331"} | ||
var testMapper = results => { | ||
if (result.status == Status.SKIPPED) { | ||
result.fullName = `(WAS SKIPPED) ${result.fullName}` | ||
} | ||
return result | ||
var environmentInfo = { Username: 'User-1331', password: 'password-1331' } | ||
var testMapper = (results) => { | ||
if (result.status == Status.SKIPPED) { | ||
result.fullName = `(WAS SKIPPED) ${result.fullName}` | ||
} | ||
return result | ||
} | ||
@@ -158,0 +156,0 @@ |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
407874
7
15
0
154