Describe the bug
The total test case number in a specific environment is doubled.
I have only one test results in allure-results:
$ cat allure-results/test-003-result.json
{
"uuid": "9d95e6e7-9cf6-4ca5-91b4-9b69ce0971f7",
"testCaseId": "43f8868a367ff70177a99838d39c5b34",
"fullName": "com.example.web.essentials.AuthenticationTest.testAuthentication",
"name": "testAuthentication()",
"labels": [
{
"name": "host",
"value": "machine-1"
}
],
"status": "passed",
"start": 1682358426014,
"stop": 1682358426014
}
And I defined the environment setting in allurerc.mjs
$ cat allurerc.mjs
import { defineConfig } from "allure";
export default defineConfig({
name: "My Test Report1",
output: "./allure-report",
plugins: {
awesome: {
options: {
singleFile: false,
groupBy: ["suite"],
}
}
},
environments: {
staging: {
matcher: ({ labels }) =>
labels.some(({ name, value }) => name === "host" && value === "machine-1"),
},
},
});
generate the report via:
$ npx allure generate allure-results/
view the report and select staging environment, the total number of test cases is 2, but I have only 1 result.
When I select 'all' in the dropdown list, the number is correct
Expected behavior
The total number of test case should 1
Desktop (please complete the following information):
- OS: ubuntu 24.04
- Browser chrome or firefox
- Allure Version 3.6.1
Describe the bug
The total test case number in a specific environment is doubled.
I have only one test results in allure-results:
$ cat allure-results/test-003-result.json
{
"uuid": "9d95e6e7-9cf6-4ca5-91b4-9b69ce0971f7",
"testCaseId": "43f8868a367ff70177a99838d39c5b34",
"fullName": "com.example.web.essentials.AuthenticationTest.testAuthentication",
"name": "testAuthentication()",
"labels": [
{
"name": "host",
"value": "machine-1"
}
],
"status": "passed",
"start": 1682358426014,
"stop": 1682358426014
}
And I defined the environment setting in allurerc.mjs
$ cat allurerc.mjs
import { defineConfig } from "allure";
export default defineConfig({
name: "My Test Report1",
output: "./allure-report",
plugins: {
awesome: {
options: {
singleFile: false,
groupBy: ["suite"],
}
}
},
environments: {
staging: {
matcher: ({ labels }) =>
labels.some(({ name, value }) => name === "host" && value === "machine-1"),
},
},
});
generate the report via:
$ npx allure generate allure-results/
view the report and select staging environment, the total number of test cases is 2, but I have only 1 result.
When I select 'all' in the dropdown list, the number is correct
Expected behavior
The total number of test case should 1
Desktop (please complete the following information):