You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to add some allure properties to a test which I want to skip programmatically.
I can see that the skip actions override all allure properties I have added (In this case epic)
const runtime = require('allure-mocha/runtime');
it("Want this test to contain some epic", function () {
runtime.allure.epic("Test 1");
this.skip();
});
The output I get is the following (without the epic, or any other allure property I tried to add):
{
"uuid": "820c5f46-bbef-43db-88d0-152d325657fb",
"historyId": "12660b30ea57b0f70968924b25b2f0c5",
"status": "skipped",
"statusDetails": { "message": "Test ignored" },
"stage": "finished",
"steps": [],
"attachments": [],
"parameters": [],
"labels": [{ "name": "parentSuite", "value": "Modules" }],
"links": [],
"start": 1656235569510,
"name": "Want this test to contain some epic",
"fullName": "Want this test to contain some epic",
"stop": 1656235569510
}
How can I add any property for skipped tests?
The text was updated successfully, but these errors were encountered:
Hello! Sorry for late reply, but the solution can't be done without a PR mochajs/mocha#4922. The issue strongly relates to #486 and requires the same conditions for the solution
Hi, I tried to add some allure properties to a test which I want to skip programmatically.
I can see that the skip actions override all allure properties I have added (In this case
epic
)The output I get is the following (without the
epic
, or any other allure property I tried to add):How can I add any property for skipped tests?
The text was updated successfully, but these errors were encountered: