You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BeforeEach hook should execute once per provider test, before any of the provider state handlers are executed (and definitely not on clear down).
Actual behaviour
The BeforeEach hook is executed before each provider state both on setup and cleanup.
Steps to reproduce
Run the TestV3HTTPProvider from v2.x.x branch link here, and check that [DEBUG] HOOK before each log line appears before each log line denoting the provider state handler execution: [INFO] executing state handler middleware .
👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (PACT-1175). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps.
The order should now be fixed, with the caveat that because there are now the possibility of multiple states, and the execution of the Before/After hooks is tied to the state handlers (for technical reasons which I don't think we can change), the sequence would look like this:
Software versions
go1.19.8 darwin/arm64
Expected behaviour
The
BeforeEach
hook should execute once per provider test, before any of the provider state handlers are executed (and definitely not on clear down).Actual behaviour
The
BeforeEach
hook is executed before each provider state both on setup and cleanup.Steps to reproduce
Run the
TestV3HTTPProvider
from v2.x.x branch link here, and check that[DEBUG] HOOK before each
log line appears before each log line denoting the provider state handler execution:[INFO] executing state handler middleware
.Relevent log files
https://gist.github.com/nsfrias/f4007fc681bbd1b0d33e9f1a6d4bdd44
The text was updated successfully, but these errors were encountered: