-
Notifications
You must be signed in to change notification settings - Fork 307
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
Additive configuration is broken in some instances. #877
Comments
The expected result is that |
So it would be complicated to rework the config loading to return the Config load order (simplified)
In order to support defaults like the reporter, the config loader should take a default config argument. This would probably need to be a breaking change since the config loading functions already have multiple optional params and the Relevant files in loading config:
|
Would the default config then take the place of the defaults being applied by the executors? That would simplify things, particularly around the handling of default reporters. As far as breaking changes go, we can tolerate them for Intern 5-pre (yay major version change). It may be worth considering how we could minimize those in the future, though, possibly through more use of options objects vs additional discrete arguments. |
Closing this in favor of #1109 |
In Intern 4.1.5, having a config with
"reporters+": "htmlcoverage"
will result in onlyhtmlcoverage
being active in the Node executor, when the defaultrunner
reporter should also be active. The issue is that config data is being resolved bygetConfig
rather than the executor's own config method, so the executor ends up missing some useful information (like the presence of the '+' indicator).The text was updated successfully, but these errors were encountered: