-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
feat(core/defaults): Add core/defaults #2042
Conversation
@marcoscaceres I have added some of the defaults on basis of this file. Since I am new to this project let me know if i missed something. |
This is good @pradeepgangwar. Now, notice that this duplicates things in That should allow us to start answering the question "from where I can get to know more default conf that can be added?" We might then need to go and look at a few specs to get a sense of what people are using/enabling. |
5aeb8c7
to
6ade10b
Compare
@marcoscaceres This means that If I copy defaults from |
Precisely. Thanks for confirming. |
5d6465c
to
dfb9120
Compare
@marcoscaceres I did some changes and pushed the code again. Please review. :)
Also please let me know what do i need to do for this. ^ |
fe6fa3f
to
315e7bd
Compare
Let's get the foundational stuff done first, then we can do the above in a separate PR. The above will require us to go look at quite a few specs. |
Sure, Thanks @marcoscaceres . Let me know if this PR requires further changes. :) |
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.
Looking really good, @pradeepgangwar! Just a couple of little things.
315e7bd
to
a2f5933
Compare
@pradeepgangwar, could you please revert the changes to the files in the "build/" directory? We only build as part of a release. |
@saschanaz, would really appreciate your input on this one. Do you think we should keep the current defaults, or turn everything off by default in "core/defaults"? |
Keeping the current sounds okay to me if they are recommended. |
Ok, just wanted to double check I wasn't overlooking something obvious. Let's run with this current structure. |
@pradeepgangwar, two tests are failing:
To figure out why, you will need to have a look at: And to run the tests locally:
And navigate to:
You should then be able to debug the tests that are failing (e.g., by setting a |
60f50d9
to
e8b81d1
Compare
@marcoscaceres Looks like it is not taking into account the core/defaults while determining defaults for w3c in test file. Earlier it was working when I imported Debugging statements show that w3c/defaults didn't had core/defaults in tests. |
Looks like we created core/defaults but not using it at all, with no imports for the module. |
lol, yeah - you are right @saschanaz ... sorry @pradeepgangwar, I should spotted that. As this is "core", you need to Then you should unshift() the "core/defaults" into the |
Or we may just explicitly call |
I think we should keep treating it as a plugin, just to be consistent. If we ever update it to be async, the base runner will know how to deal with it. Same with errors, and measuring perf stuff and so on. That will all work the same as with other plugins. |
I think we somehow should refactor the current plugin system. We know our core plugins are dependent on others but it's currently hard to figure out which depends on which. Importing and calling module functions explicitly may help here. That said, maybe it's okay to keep consistency in this PR. |
🤞 fingers crossed that fixed it! 🤞 |
Now some new tests are failing. 😢 I am not sure why they are failing. |
Failing tests is a good thing: it means that the new defaults are being applied :) We are changing some pretty fundamental stuff in ReSpec, so some tests are going to get upset. |
@pradeepgangwar, are you good to investigate these failures or would you prefer I have a look? Understand if it's starting to get more "in the weeds" than originally intended. However, if you want a bit of a challenge, it might be worth while seeing why those two tests are failing. |
@marcoscaceres Sure I wil try to investigate the tests. Give me some time ... Maybe till tomorrow. I will let you know If I get into some trouble. |
Sounds good @pradeepgangwar. Appreciate your help. |
@marcoscaceres I tried it for but could not figure out actual problem. 🤕 Can you help me here. |
Will try to have a look soon. |
Okay, I found what's the problem for the test "resolve with the resulting respecConfig". Previously the code did not overwrite |
The problem with the test "uses inline references to provide context" is similar. We now overwrites on |
Co-Authored-By: pradeepgangwar <[email protected]>
@marcoscaceres @saschanaz Thanks a lot! Tests passed. 😃 |
Thanks all for your persistence on this. I think this moves us in a good new direction. |
Adds core defaults to respec
Fixes #2023