Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Source the env.tcl before all other files #31

Open
jowers opened this issue Jun 4, 2015 · 3 comments
Open

Source the env.tcl before all other files #31

jowers opened this issue Jun 4, 2015 · 3 comments

Comments

@jowers
Copy link
Contributor

jowers commented Jun 4, 2015

In cucumber, the env.rb file has special status and is always sourced first. We should replicate this behaviour in cucumber-tcl.

@brucepreston
Copy link

I'm just looking at the behaviour of cucumber when passed a specific feature file and a --require option.

If the file layout is:

  • myfeature/group_one/my.feature
  • myfeature/group_one/steps/steps.tcl
  • myfeature/group_one/support/env.rb
  • myfeature/support/env.rb

..and I execute cucumber myfeature/group_one/my.feature --require myfeature

..which env.rb should get sourced first? I'd have expected the one from the --require directory but it seems to be the one in the feature directory.

@brucepreston
Copy link

Furthermore, are all env.rb files sourced first? Then all */support/* files? Or is just one support directory assumed to be the special one for the purposes of order-of-sourcing?

@brucepreston
Copy link

I've submitted a pull request to sort out the order of file sourcing.

Until I have more specific instructions, the ordering is: */support/env.tcl before */support/filename.tcl before */filename.tcl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants