Allure-js-commons /SDK/Reporting, not able to add stopTime to the test #2644
vanBadAsselt
started this conversation in
Ideas & Feedback
Replies: 1 comment 3 replies
-
Sorry, I don't quite understand the issue. The way
BTW, if you're converting one JSON result to another, there is no need to use |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR: It seems that there is an issue in allure-js-commons > SDK > reporter runtime > calculate timings that prevents the stop time to be added. When stop time is provided, in the allure-results.json it results in
"stop": { "stop": 1721054909078, "duration": 82743.77525 }
, which shows an empty result in AllureContext: I created an NX plugin to convert K6 test results into Allure results using the allure-js-commons lib (3.0.0-beta.5), this works but so far I'm not able to show the test duration. I have a start and stop time that I convert to a 13 digit epoch time which I then assign to the test result:
When I add the times through
updateTest
like below, the start time matches but the stoptime is 1721114020529When I try
stopTest
like below, stop will result in this object, which doesn't upload in Allure (shows empty result), because probably stop should be a number:"stop": { "stop": 1721054909078, "duration": 82743.77525 }
If I look in the code of the Reporter, it looks like the issue lies in
calculateTimings
My observations:
opts?.stop
,const result: { start?: number; stop?: number } = { start, stop };
I attached the following as a zip:
AllureQs.zip
Suggested fix :
Beta Was this translation helpful? Give feedback.
All reactions