-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
'timeout' events have different structure than e.g. 'test-passed' #2645
Comments
I think I'm really close. But for both L84 and L107, I can't find a way to get the test's
|
Sorry what title do you need to acces in what circumstance? |
The proposed event "test-timeout" that is created in |
Is this for individual test timeouts? Through Apologies if I didn't make this clear enough. Trying to remember it all myself 😀 |
Actually, I was contemplating if they're attributable or not too. But from my understanding, the current |
The worker runs test files, which contain tests, which have titles. #2501 mentions this issue:
Perhaps solving that makes it easier to achieve your goal here. As I'm also discussing in #2647 the reporter code is quite messy at this point and I'm having a hard time remembering what it's supposed to do for what reason. Let's keep that in mind as we expend all this energy trying to tweak it… perhaps a more radical approach is necessary. |
consumeStateChange expects events of a specific type to be submitted. These get then passed on to functions that will log the outcome of the test run (endRun and writeTestSummary.
However, an event of type
timeout
(and maybe also typeinterrupt
) cannot be passed to e.g. writeTestSummary, as their shape is different than e.g. a typetest-passed
. For comparison, here's a typetest-passed
eventand here's a type
timeout
.Not that also a timeout is logically on another level to a test-passed. A timeout event is sent once and contains all timed-out tests in
pendingTests
whereas each failed test gets their owntest-passed
event.To improve the output of timed-out tests as I've outlined in #2639, I was wondering if it would hence make sense to convert the structure of
timeout
into a similar one fromtest-passed
. Meaning that for each test that times out, a new event is sent with the propertiestype
,title
,duration
,knownFailing
,logs
,testFile
.If so, would you mind telling me which file dictates the structure of a timeout event?
The text was updated successfully, but these errors were encountered: