Open matisnape opened 5 years ago
Basically, I rewrote the integration a bit - I now use a reporter listener instead of before/after hooks :)
Linking GitHub issue of rspec-core
that clarifies the execution flow: https://github.com/rspec/rspec-core/issues/2289
So I found out that when I have flag :aggregate_failures set to true, the processing example in
after :example
doesn't really work - the example is set as untested and when I try to debug, the example object has:execution_result
only with attribute@started_at
and there's no exception message. In other words, it looks like the first expect already concludes the example for processing for Testrail, even though it didn't really finish running.Example:
In this spec I have 4 expects and 3 are failing:
Digging in the Rspec core documentation I found that aggregate_failures is like a couple examples that are later normalized into single backtrace, but I don't know how to make processing wait for all failures to be normalized.
Do you have any idea how to do that maybe? :)