-
Notifications
You must be signed in to change notification settings - Fork 128
Labels
theme:apiJavascript API related issueJavascript API related issuetype:bugSomething isn't workingSomething isn't working
Description
Describe the bug
Different tests get the same fullName, titlePath, testCaseId, and historyId if:
- They are from different packages (e.g., in a multirepo).
- And they have the same file path and suite names.
Allure Report (both v2 and v3) will display only one such test, hiding the others behind the "Retries" tab.
To Reproduce
Since the issue affects the allure-js repo, the easiest way to reproduce it is as follows:
- Clone this repo, checkout
tags/v.3.2.2, install deps, and build the code. yarn workspaces foreach -Avvt run vitest run ./test/spec/globalLabels.test.ts -t "^should handle global labels$" --passWithNoTests.allure serve $(find ./packages/allure-*/out/allure-results -type d)(for Windows,allure serve @(gi ./packages/allure-*/out/allure-results/)).- See the error: only one test is displayed in the trees. Other tests are hidden as the test's retries, rather than being separate tests.
Expected behavior
Tests of different packages must be treated as separate tests in all cases.
Screenshots
Additional context
We normalize fullNames relative to the package.json, which means we can read the package's name from it in most cases.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
theme:apiJavascript API related issueJavascript API related issuetype:bugSomething isn't workingSomething isn't working