Open ahmednkhan24 opened 5 months ago
Hi @ahmednkhan24 ππ»
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 π
hello, is there any estimation about this bug?
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