-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Run <setup> block before <instance-settling> #586
Comments
The only way I got it working is a following
I've tried to do it better way by adding a new element to |
I try to maintain a strict separation between the stage you read/discover the tests and the stage where you execute them. From this, I'm not planning to support, as such, the run (execution stage) of a setup before the instance-settling (discovery stage). It doesn't mean that there is no option but I'd need more info on your case about why you want to do this. From my experience, I see two cases:
I hope that you're into one of these use-cases. Keep me posted because I'll need to work on setup/cleanup as soon as I've time. Important note: I received a message from a team member that run-once is not working in the last versions of NBi. I quickly checked and I think it's indeed the case. If confirmed, I'll fix this bug as soon as I've time. My time is really limited, probably until EOM. |
Thanks, I'll explore the options mentioned.
Agreed, that's why I'm suggesting adding new
Yes, but I need to execute it before discovery phase. I'm using groups and run-once already.
I was aware of that option, but it looks like overkill for my scenario as all the capabilities that
What is meant by that? Which version exactly? I'm using it and works just fine.
I could use option two, but it is overkill IMO. I need to execute |
Thx for the confirmation of your scenario. Indeed a custom extension is a bit overkill if you just have to execute one sql. Nevertheless, keep in mind that your If you put a |
I doubt if it's gonna work for me as I have many tests grouped where each of them has a different
I'm already doing that but at the script level. I guess at the code level I could reuse
I'm happy to try, especially with some guidance. However, I'm not sure I'll have time for it before April too 😩 |
Currently, it seems that tasks inside
<setup>
run before actual test execution. I have a scenario where I need to run some setup before<instance-settling>
block in order to properly generate TCs. Is there such a possibility?Maybe there could be an attribute similar to
run-once
to override the default execution order? Or there could be an additionalpre-execute
block to be executed beforeBuildTestCases()
is called?The text was updated successfully, but these errors were encountered: