Replies: 6 comments 6 replies
-
Here is a test that I believe verifies the correct logical behaviour...
|
Beta Was this translation helpful? Give feedback.
-
I expanded your test case a little bit with another scenario
and with this defer function return early when there's a
|
Beta Was this translation helpful? Give feedback.
-
Good catch, I think there is no reasonable justification for current behavior, it is just an overlook or an implementation shortcut. Please feel free to fix this (or maybe I'll try once I have some time). |
Beta Was this translation helpful? Give feedback.
-
hi thanks.
please leave it with me for a bit.
I'm renovating the tests at the moment in prep to make that change and also
dryrun which I need.
John
…On Thu, 24 Oct 2024, 12:00 pm Viacheslav Poturaev, ***@***.***> wrote:
Good catch, I think there is no reasonable justification for current
behavior, it is just an overlook or an implementation shortcut. Please feel
free to fix this (or maybe I'll try once I have some time).
—
Reply to this email directly, view it on GitHub
<#651 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGMFGFBRC5MTWMWZ4MCBOTZ5DHODAVCNFSM6AAAAABQH6Q6PGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBTHE3TKMI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
OK this is NOT the fix for the above problem but it's my first push of the renovation work as part of that fix. There are api changes.
See : #659 This took a lot of disentanlging. Sadly suite_context_test was anoverhaul; as it wasn't really testing godog at all really but some kind of simulation of it. Eg take a look at 'iRunFeatureSuiteWithTagsAndFormatter' on trunk << that isn't godog being tested, and all the event stuff in that routine isn't right either. Many of the tests were overly complex with interdependencies between feature files that except for a few cases did nothing but make things more complex. (still work to be done there) Anyway please take look. Anyway - there is still redundancy in the tests - I removed it but put it back as this is big enough already. |
Beta Was this translation helpful? Give feedback.
-
should be 1.16 not sure what going on there. ah I upgraded honnef from 0.4.1 I think as it was crashing. will revert I guess my local install is 1.22 |
Beta Was this translation helpful? Give feedback.
-
@vearutop would you mind double checking this.
BUG #650
It looks like we've written tests that assert what I consider as broken behaviour.
Specifically if there has been an error then the AfterScenario runs prematurely and then the step level hooks run for any remaining scenarios.
Is there any logic to this - looks plain wrong to me.
I expect strict nesting as described in the bug ticket.
Beta Was this translation helpful? Give feedback.
All reactions