-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-788-fix-multi-job-mode-tests-skipping
- Loading branch information
Showing
24 changed files
with
146 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
undecided: | ||
- allure-js | ||
- allure-codeceptjs | ||
- allure-cucumberjs | ||
- allure-decorators | ||
- allure-hermione | ||
- allure-jasmine | ||
- allure-jest | ||
- allure-js-commons | ||
- allure-mocha | ||
- allure-playwright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
undecided: | ||
- allure-js | ||
- allure-codeceptjs | ||
- allure-cucumberjs | ||
- allure-decorators | ||
- allure-hermione | ||
- allure-jasmine | ||
- allure-jest | ||
- allure-js-commons | ||
- allure-mocha | ||
- allure-playwright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
undecided: | ||
- allure-js | ||
- allure-codeceptjs | ||
- allure-cucumberjs | ||
- allure-decorators | ||
- allure-hermione | ||
- allure-jasmine | ||
- allure-jest | ||
- allure-js-commons | ||
- allure-mocha | ||
- allure-playwright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "allure-js", | ||
"private": true, | ||
"version": "2.8.1", | ||
"version": "2.9.2", | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "allure-hermione", | ||
"version": "2.8.1", | ||
"version": "2.9.2", | ||
"packageManager": "[email protected]", | ||
"license": "Apache-2.0", | ||
"author": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "allure-jest", | ||
"version": "2.8.1", | ||
"version": "2.9.2", | ||
"description": "Allure Jest integration", | ||
"license": "Apache-2.0", | ||
"packageManager": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
it("hello", () => { | ||
expect(1).toBe(2); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { expect } from "chai"; | ||
import { runJestTests } from "../utils"; | ||
|
||
describe("ansiColors", () => { | ||
it("removes ansi colors from text errors", async () => { | ||
const results = await runJestTests(["./test/fixtures/ansiColors.test.js"]); | ||
const [result] = Object.values(results); | ||
|
||
expect(result.name).eq("hello"); | ||
expect(result.statusDetails.message).not.to.contain("\x1b["); | ||
expect(result.statusDetails.trace).not.to.contain("\x1b["); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import process from "process"; | ||
import { expect } from "chai"; | ||
import { restore, stub } from "sinon"; | ||
import { AllureRuntime, AllureTest } from "allure-js-commons"; | ||
|
||
const fixtures = { | ||
name: "test name", | ||
runtimeWriter: { | ||
writeResult: stub(), | ||
writeGroup: stub(), | ||
writeAttachment: stub(), | ||
writeAttachmentFromPath: stub(), | ||
writeEnvironmentInfo: stub(), | ||
writeCategoriesDefinitions: stub(), | ||
}, | ||
}; | ||
|
||
describe("AllureTest", () => { | ||
let runtime: AllureRuntime; | ||
|
||
beforeEach(() => { | ||
restore(); | ||
|
||
stub(process, "env").value({ | ||
ALLURE_LABEL_FOO: "foo", | ||
ALLURE_LABEL_BAR: "bar", | ||
}); | ||
|
||
runtime = new AllureRuntime({ | ||
writer: fixtures.runtimeWriter, | ||
resultsDir: "", | ||
}); | ||
}); | ||
|
||
it("assigns global allure labels from env variables to the test", () => { | ||
const currentTest = new AllureTest(runtime); | ||
|
||
currentTest.endTest(); | ||
|
||
expect(fixtures.runtimeWriter.writeResult.args[0][0].labels).eql([ | ||
{ | ||
name: "foo", | ||
value: "foo", | ||
}, | ||
{ | ||
name: "bar", | ||
value: "bar", | ||
}, | ||
]); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters