Update code to include env files in dry run #1326
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Causes Cucumber to load
env.rb
files even on dry run.Details
This PR removes a conditional in
configuration.rb
that prevents env files from loading when the--dry-run
option is turned on. It also updates the help message for--dry-run
to omit the part about env files not loading.Motivation and Context
In #1324, @dpsi brings up an issue they're having loading constants and libraries when Cucumber runs under the
--dry-run
option, pointing out that this is not the first time users have brought up this problem with us. The issue stems from theenv.rb
files not being loaded.How Has This Been Tested?
The test ensuring that env files are not loaded on dry runs has been removed. I've ensured that env files do still load first in all cases.
Types of changes
Checklist: