Hi,
I have been updating our cucumber tests to the new queue mode and encountered one issue.
Because it is executing tests in chunks, we are loosing quite a bit of time on initial rails initialisation each time new chunk is started. Having ability to use spring would help with this issue, but doesn't seem it is possible at the moment with the queue runner.
I found there are 2 ways to implement this:
- Having some sort of env var like
KNAPSACK_PRO_CUCUMBER_QUEUE_SPRING_ENABLED which would transform command to a bundle exec spring cucumber.
- Having env var similar to cucumber rake task option
binary, which would allow to replace executed cucumber binary with a springified binstub.
WDYT? Maybe there are some other ways?
Hi,
I have been updating our cucumber tests to the new queue mode and encountered one issue.
Because it is executing tests in chunks, we are loosing quite a bit of time on initial rails initialisation each time new chunk is started. Having ability to use spring would help with this issue, but doesn't seem it is possible at the moment with the queue runner.
I found there are 2 ways to implement this:
KNAPSACK_PRO_CUCUMBER_QUEUE_SPRING_ENABLEDwhich would transform command to abundle exec spring cucumber.binary, which would allow to replace executed cucumber binary with a springified binstub.WDYT? Maybe there are some other ways?