@isaac.frontend/testcafe-reporter-allure
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -6,2 +6,49 @@ # Changelog | ||
## [1.1.0](https://github.com/isaaceindhoven/testcafe-reporter-allure/compare/v1.0.3...v1.1.0) (2020-10-30) | ||
### Features | ||
* copy screenshots to allure report folder before attaching to report ([4090c76](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/4090c7624ef6af937815a1456c5d7f0b953c47ba)) | ||
### Bug Fixes | ||
* **reporter:** fix default detailsMessage and detailsTrace value ([f3e59e0](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/f3e59e096292a485d3d9334f197e4c552fdcbf8a)) | ||
* set historyId to uuid instead of test name ([8eaac30](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/8eaac30f7c57370510f7b4d22965318c3e2dbfd4)) | ||
### Documentation | ||
* **vuepress:** fix base ([e947325](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/e94732547ee56e9675216b331ee209d128e7da95)) | ||
* **vuepress:** fix base ([ef15a25](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/ef15a2513557d4bcdf16c788bc9c844f4f7526ab)) | ||
### Tests | ||
* **eslint:** fix linting ([33f8123](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/33f81238f22fa555754495f80b07a94986d31e7f)) | ||
* **eslint:** ignore global declaration unused-var error ([ad0130b](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/ad0130b1ad5e3560f11773a386e5e4824da0860b)) | ||
* **ESLint:** Ignore docs folder ([c68633d](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/c68633ded7d0a86de713a6045ac90ef9d022d35e)) | ||
* **step:** remove faulty testcafe/ts-defs ([17ced1a](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/17ced1a13f5a3354b5ec7a644a492dc062016435)) | ||
### Chores | ||
* **deps:** update all non-major dependencies ([c841837](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/c84183712a8926789b304a1a9c8e2d45842f05e1)) | ||
* **deps:** update dependency eslint-config-airbnb-typescript to v12 ([21a1d05](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/21a1d05414505ae5a334f28d381cb4047aa0b2a8)) | ||
* add IntellIJ to gitignore ([b460e6c](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/b460e6c992878c8ce5f33d48f1511f2806312024)) | ||
* cleanup ([fa5c0f0](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/fa5c0f01a718e66395342df39e692f5de0eda378)) | ||
* **deps:** pin dependencies ([80d3640](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/80d3640c4c621128997f8742fd571610116c869c)) | ||
* **deps:** update all non-major dependencies ([7e6e09e](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/7e6e09ed9821ade7797495162725df03a5320e4d)) | ||
* **deps:** update all non-major dependencies ([7a653e3](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/7a653e3f5360b87fe0cb416106414850b2524e3f)) | ||
* **deps:** update all non-major dependencies ([f8a5646](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/f8a564692cc6feed087707bb58cbdd4c9b6ad4f4)) | ||
* **deps:** update all non-major dependencies ([3a6eb94](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/3a6eb943c7d9e0e1445ddda08b67f8e42aa3d67e)) | ||
* **deps:** update all non-major dependencies ([6720fc4](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/6720fc4d8954fd97dd1f342a3324d0b274a786f0)) | ||
* **deps:** update commitlint monorepo to v11 ([dae1cc2](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/dae1cc2814e9d2504bf5de39a0b5e00d101e4975)) | ||
* **deps:** update dependency @rollup/plugin-typescript to v6 ([0509940](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/0509940e9a572ef141168118d45fe85239aa22a2)) | ||
* **deps:** update dependency eslint-config-airbnb-typescript to v10 ([90e6d0e](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/90e6d0ea14e0d1820efc2873c6d93cd5d0a22414)) | ||
* **deps:** update dependency typescript to v4 ([06c5fe3](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/06c5fe3b830ad9715cc01f137e06337c4d245a9d)) | ||
* **deps:** update typescript-eslint monorepo to v4 ([96a249d](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/96a249d788b02eed701cb191833b0cc01f686688)) | ||
* **npm:** Fix package-lock issues ([92dc9b9](https://github.com/isaaceindhoven/testcafe-reporter-allure/commit/92dc9b97ea2f3910b3c40de20b4f9944816d846e)) | ||
### [1.0.3](https://github.com/isaaceindhoven/testcafe-reporter-allure/compare/v1.0.2...v1.0.3) (2020-07-30) | ||
@@ -8,0 +55,0 @@ |
'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var allureJsCommons = require('allure-js-commons'); | ||
var uuid = require('uuid'); | ||
var fs = require('fs'); | ||
var mergeAnything = require('merge-anything'); | ||
var path = require('path'); | ||
var rimraf = _interopDefault(require('rimraf')); | ||
var rimraf = require('rimraf'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var rimraf__default = /*#__PURE__*/_interopDefaultLegacy(rimraf); | ||
/*! ***************************************************************************** | ||
@@ -178,2 +182,3 @@ Copyright (c) Microsoft Corporation. | ||
}; | ||
// eslint-disable-next-line no-undef | ||
TestStep.prototype.addStepToTest = function (test) { | ||
@@ -200,3 +205,3 @@ // Steps can be added to the metadata of the test for persistance. | ||
function addNewLine(text, line) { | ||
if (text === null) { | ||
if (text === null || text.length === 0) { | ||
return line; | ||
@@ -429,3 +434,3 @@ } | ||
currentTest.fullName = currentGroup.name + " : " + name; | ||
currentTest.historyId = name; | ||
currentTest.historyId = uuid.v4(); | ||
currentTest.stage = allureJsCommons.Stage.RUNNING; | ||
@@ -444,4 +449,4 @@ this.setCurrentTest(name, currentTest); | ||
var isSkipped = testRunInfo.skipped; | ||
var testMessages = null; | ||
var testDetails = null; | ||
var testMessages = ''; | ||
var testDetails = ''; | ||
if (isSkipped) { | ||
@@ -544,3 +549,3 @@ currentTest.status = allureJsCommons.Status.SKIPPED; | ||
AllureReporter.prototype.addScreenshotAttachment = function (test, screenshot) { | ||
if (screenshot.screenshotPath) { | ||
if (screenshot.screenshotPath && fs.existsSync(screenshot.screenshotPath)) { | ||
var screenshotName = void 0; | ||
@@ -557,3 +562,5 @@ if (screenshot.takenOnFail) { | ||
} | ||
test.addAttachment(screenshotName, allureJsCommons.ContentType.PNG, screenshot.screenshotPath); | ||
var img = fs.readFileSync(screenshot.screenshotPath); | ||
var file = this.runtime.writeAttachment(img, allureJsCommons.ContentType.PNG); | ||
test.addAttachment(screenshotName, allureJsCommons.ContentType.PNG, file); | ||
} | ||
@@ -623,3 +630,3 @@ }; | ||
if (!dataPath) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, rimraf(dataPath + "/*", function () { })]; | ||
return [4 /*yield*/, rimraf__default['default'](dataPath + "/*", function () { })]; | ||
case 1: | ||
@@ -626,0 +633,0 @@ _a.sent(); |
@@ -158,2 +158,3 @@ 'use strict'; | ||
}; | ||
// eslint-disable-next-line no-undef | ||
TestStep.prototype.addStepToTest = function (test) { | ||
@@ -181,2 +182,3 @@ // Steps can be added to the metadata of the test for persistance. | ||
*/ | ||
// eslint-disable-next-line no-undef | ||
function step(name, testController, stepAction) { | ||
@@ -183,0 +185,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "@isaac.frontend/testcafe-reporter-allure", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"author": "ISAAC E-commerce Solutions BV", | ||
@@ -44,40 +44,42 @@ "license": "MIT", | ||
"dependencies": { | ||
"allure-js-commons": "^2.0.0-beta.6", | ||
"allure-js-commons": "^2.0.0-beta.8", | ||
"merge-anything": "^3.0.3", | ||
"rimraf": "^3.0.2" | ||
"rimraf": "^3.0.2", | ||
"uuid": "^8.3.1" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^9.1.1", | ||
"@commitlint/config-conventional": "^9.1.1", | ||
"@rollup/plugin-typescript": "5.0.2", | ||
"@commitlint/cli": "11.0.0", | ||
"@commitlint/config-conventional": "11.0.0", | ||
"@rollup/plugin-typescript": "6.1.0", | ||
"@semantic-release/changelog": "5.0.1", | ||
"@semantic-release/commit-analyzer": "8.0.1", | ||
"@semantic-release/git": "9.0.0", | ||
"@semantic-release/npm": "7.0.5", | ||
"@semantic-release/npm": "7.0.6", | ||
"@semantic-release/release-notes-generator": "9.0.1", | ||
"@types/jest": "26.0.7", | ||
"@types/jest": "26.0.15", | ||
"@types/rimraf": "3.0.0", | ||
"@typescript-eslint/eslint-plugin": "3.7.1", | ||
"@typescript-eslint/parser": "3.7.1", | ||
"@types/uuid": "8.3.0", | ||
"@typescript-eslint/eslint-plugin": "4.6.0", | ||
"@typescript-eslint/parser": "4.6.0", | ||
"allure-commandline": "2.13.0", | ||
"callsite-record": "4.1.3", | ||
"eslint": "7.5.0", | ||
"eslint-config-airbnb-typescript": "9.0.0", | ||
"eslint-config-prettier": "6.11.0", | ||
"eslint-plugin-import": "2.22.0", | ||
"eslint-plugin-jest": "23.19.0", | ||
"eslint": "7.12.1", | ||
"eslint-config-airbnb-typescript": "12.0.0", | ||
"eslint-config-prettier": "6.15.0", | ||
"eslint-plugin-import": "2.22.1", | ||
"eslint-plugin-jest": "24.1.0", | ||
"eslint-plugin-prettier": "3.1.4", | ||
"husky": "4.2.5", | ||
"jest": "26.1.0", | ||
"lint-staged": "10.2.11", | ||
"husky": "4.3.0", | ||
"jest": "26.6.1", | ||
"lint-staged": "10.5.0", | ||
"normalize-newline": "3.0.0", | ||
"prettier": "2.0.5", | ||
"rollup": "2.23.0", | ||
"rollup-plugin-typescript2": "0.27.1", | ||
"semantic-release": "17.1.1", | ||
"testcafe": "1.8.8", | ||
"ts-jest": "26.1.4", | ||
"typescript": "3.9.7", | ||
"vuepress": "^1.5.2" | ||
"prettier": "2.1.2", | ||
"rollup": "2.32.1", | ||
"rollup-plugin-typescript2": "0.28.0", | ||
"semantic-release": "17.2.2", | ||
"testcafe": "1.9.4", | ||
"ts-jest": "26.4.3", | ||
"typescript": "4.0.5", | ||
"vuepress": "1.7.1" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
63617
1046
4
33
3
1
+ Addeduuid@^8.3.1
+ Addeduuid@8.3.2(transitive)