Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test execution duration is displayed incorrectly for allure-vitest/reporter #899

Open
dzianisMazhuhou opened this issue Mar 6, 2024 · 4 comments · Fixed by #901
Open
Assignees
Labels
theme:vitest type:bug Something isn't working

Comments

@dzianisMazhuhou
Copy link

Describe the bug
I ran integration tests that run on average for a minute and a half, but after generating the report it shows that it took several days.

Screenshots
image
image

@baev
Copy link
Member

baev commented Mar 6, 2024

@dzianisMazhuhou, please make sure you're using the latest versions of vitest and allure-vitest. The issue should be fixed in [email protected]; see #885.

@dzianisMazhuhou
Copy link
Author

I am sorry for not providing this information right away. Currently i am using version 2.13.0
image

@epszaw epszaw added type:bug Something isn't working theme:vitest labels Mar 7, 2024
@epszaw epszaw reopened this Mar 8, 2024
@epszaw
Copy link
Member

epszaw commented Mar 8, 2024

I made a fix that makes tests duration in the report the same as in the console, but please attach a timeline from the report you made screenshots from to make it easier to figure out what's going wrong.

@epszaw epszaw self-assigned this Mar 8, 2024
@dzianisMazhuhou
Copy link
Author

dzianisMazhuhou commented Mar 12, 2024

I checked my duration-trend.json in history folder and i have big values for duration
[{"data":{"duration":543212952}},{"data":{"duration":543212952}},{"data":{"duration":533489216}},{"data":{"duration":530802149}},{"data":{"duration":527148998}},{"data":{"duration":526620680}},{"data":{"duration":526620680}},{"data":{"duration":526011346}},{"data":{"duration":525274530}},{"data":{"duration":524956265}},{"data":{"duration":524578874}},{"data":{"duration":523736400}},{"data":{"duration":522869809}},{"data":{"duration":97793166}},{"data":{"duration":244638671}},{"data":{"duration":243285304}},{"data":{"duration":95373}},{"data":{"duration":72856600}},{"data":{"duration":72609777}},{"data":{"duration":72501683}}]
I am using this script in package.json to store test run history:
"test:integration": "vitest integration",
"test:allure": "npm run test:integration || true && allure generate allure-results --clean && mkdir -p allure-results/history && mv allure-report/history/* allure-results/history && allure open". Perhaps the time is displayed incorrectly due to this command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:vitest type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants