Skip to content

Spring preloading and cucumber queue mode #97

@andrcuns

Description

@andrcuns

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:

  1. Having some sort of env var like KNAPSACK_PRO_CUCUMBER_QUEUE_SPRING_ENABLED which would transform command to a bundle exec spring cucumber.
  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions