-
Notifications
You must be signed in to change notification settings - Fork 100
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
introduction words interfere with duration reporting #755
Comments
Patched using AspectJ:
|
Hi Adrian, |
Yes.
HTML -- in the text report timings are not reported.
That's only a patch, of course. The real issue is somewhere in StepInterceptorImpl class. Somehow it happens that intro words are handled by calling handleMethodFinished method without updating ScenarioModelBuilder#currentStep, thus overriding previous step's duration... The entire mechanism has way too many fields, changed in various places, making it hard to comprehend how things really work.
|
I've managed to identify the issue: Two components have a different understanding of what a "step" is. I came up with a solution, however, I am not content with merging it yet, because it does not satisfy my quality standards. A proper solution would involve translating between the different step concepts. Implementing this is however a bit more involved, so it is going to take significantly more time. |
Happens too me too :) I am just making it work and write a to-do or fix-me notes alongside.
|
merged preliminary solution: #778 |
Try following test:
First one is reported like this:
Given nothing (11ms)
When doing nothing 1000
And doing nothing 1000
And doing nothing 1000 (1.001s)
Then succeeds
Second one, without the intro-words, is reported:
Given nothing
When doing nothing 1000 (1.001s)
doing nothing 1000 (1.000s)
doing nothing 1000 (1.001s)
Then succeeds
The text was updated successfully, but these errors were encountered: