Closed kutzi closed 4 years ago
No, if I recall correctly the events that Cucumber sends don’t work for reporting purposes (yet?)
hmm, okay
Is that fixable? If I remember correctly there are some options you have in cucumber4 to receive the events in the correct order, right?
I haven’t had time to look yet
I'd say somehow cucumber.runtime.formatter.SerenityReporter needs to be modified that most/all of the internal stuff is handled thread-local: stepQueues, tags, currentScenarioId
All the reporting logic is already thread-local - feel free to have a look though.
SerenityReporter has e.g. a single stepQueue which is e.g. used to determine the current step. I guess that needs to be a thread-local queue.
I can have a look and convert everything - which appears to need it - to thread-local, but in the end I'm not really known with that code.
See what you can do and I will take a look - handing th current step should indeed be threadlocal.
Fixed in 1.0.28
We've now migrated our serenity/cucumber-jvm tests the cucumber4 and running them with --threads. While this works generally great, I just seen a strange issue: For a failing test the BDD report reported a step to be failing for a scenario which the test was not actually part of!
serenity-core 2.0.48, serenity-cucumber4:1.0.12, cucumber-jvm 4.2.0