-
Notifications
You must be signed in to change notification settings - Fork 176
Don't execute before/after on experiments that lack tests #584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/runner.js
Outdated
| state.domains = []; | ||
|
|
||
| const skipExperiment = skip || experiment.options.skip; | ||
| const skipExperiment = skip || experiment.options.skip || !internals.experirementHasTests(experiment, state); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
experiment is spelt wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exper ire ment :(
lib/runner.js
Outdated
| } | ||
| }); | ||
|
|
||
| return tests.length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably convert this to a Boolean before returning. "has tests" implies to me that it would be a Boolean.
|
|
||
| internals.experimentHasTests = function (experiment, state) { | ||
|
|
||
| if (experiment.experiments.length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
purely personal opinion but I find > 0 more clear as to what you are doing, just a fyi
|
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
Closes #337
Closes #440