-
Notifications
You must be signed in to change notification settings - Fork 14
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
multiple @BeforeSuite conflict #138
Comments
@pwmcintyre The BeforeSuite hook is executed even before executing steps. |
note: this appears to be for all hooks, not just @BeforeSuite (ie. any 2 matching hooks conflict with each other) |
@BugDiver — let me try to clarify the issue it's not the order they run, that seems to be fine ... the issue is that the instance on the second one seems to lose all its internal properties eg — if i remove the assert so that it doesn't fail, and just observe the logs ... you can see the undefined properties:
even though the constructor did run successfully! |
@pwmcintyre I see what you mean. Let me check it from my end. I get back to |
Signed-off-by: BugDiver <[email protected]>
Signed-off-by: BugDiver <[email protected]>
@pwmcintyre This should be fixed as part of #182 |
* Enhance step parameter types #5 * Pass correct instance to hooks #138 --------- Signed-off-by: BugDiver <[email protected]>
Describe the bug
I have 2 Step classes which both have "BeforeSuite" requirements, but they seem to conflict with each other, is this expected?
To Reproduce
1 — example spec:
./specs/foo.spec
2 — example spec api
./tests/step.foo.ts
tests/step.bar.ts
3 — run it
Expected behavior
if i remove one of the conflicting
@BeforeSuite
functions (eg. the one in bar.ts) — i everything works as-expectedScreenshots
NA
Desktop (please complete the following information):
gauge -v
]node -v
]: v12.16.2npm -v
]: 6.14.4Additional context
NA
The text was updated successfully, but these errors were encountered: