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
Thanks a lot for submitting this feature request 🙇🏻
We are aware of this and have it on our radar already. However, it is still being determined whether we will make this possible in the future. We'll make sure to let you know as soon as there is progress on that front 🙂
Brief summary
I have a K6 project with multiple test files.
I'm able to incorporate all of these tests using K6 Scenarios.
I now want to include K6 Lifecycle functions, like
setup
andteardown
for each test.However, there's no way to specify a setup function in a scenario, similar to how the
exec
value specifies what function is invoked for the scenario.If any one test file exports a
setup
function, that samesetup
function is used for all tests.k6 version
v0.50.0
OS
Windows 11
Docker version and image (if applicable)
No response
Steps to reproduce the problem
options.ts
test1.ts
test2.ts
Expected behaviour
The setup for each test respects what it exports.
Actual behaviour
Only 1 setup function is used for all tests
The text was updated successfully, but these errors were encountered: