testcafe CLI exits before asynchronous task in reportTaskDone of custom reporter completes #3835
Labels
AREA: server
STATE: Auto-locked
An issue has been automatically locked by the Lock bot.
SYSTEM: reporting
TYPE: bug
The described behavior is considered as wrong (bug).
Milestone
I have created a contrived example to reproduce this easily. Although no one would do this exactly, with a time out, it demonstrates an asynchronous task that takes an indeterminate amount of time to complete.
Reproduction steps:
testcafe chrome Tests.js -r customReporter
, where Tests.js contains tests and customReporter is the custom reporter from 1.Actual Result
TestCafe exits almost immediately after tests complete and before 'Should see this after 60 seconds' is output.
Expected Result
Should see both console logs output with an approximate 60 seconds interval between them.
This issue was discussed here: https://testcafe-discuss.devexpress.com/t/no-built-in-reporting-of-results-especially-failures-by-email/993/12
Specifically see comment:
And I see this open task here: #2753 but I think some clarification is needed because the documentation for custom reporter functions seems to indicate async/await is already supported: https://devexpress.github.io/testcafe/documentation/extending-testcafe/reporter-plugin/reporter-methods.html
The changelog here: https://www.libupdate.com/libs/192a126f-308f-4b25-86e8-ecbecbabd350 for V1.0.0 also indicates this is implemented: https://www.libupdate.com/libs/192a126f-308f-4b25-86e8-ecbecbabd350 :
The text was updated successfully, but these errors were encountered: