-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Test suite subject to failures due to remappings in settings.json #451
Comments
Great catch, seems fairly easy to disable these settings on a test run. |
Seems like the simplest place to handle this would be to check for Then again, if other functionality is added to |
Thanks for the issue report! @rebornix, you are refactoring settings, correct? If you do it right, fixing this issue should fall out of that with almost no other work required. 🙂 |
yes I'm working on the setting and I'll take a look at this one while implementing. |
I took a look at this issue again, and I found this actually has little to do with settings. This problem is totally the same as other configuration like Tab, Space, etc. When you run tests against your local VS Code, it will read your personal configuration while it's on Travis, it loads what Travis has, which is nothing. For tabbing, what we do is resetting the tab/space config on the fly before each test suite. While not every configuration can be modified right now and the cost is too much. Yet again I suggest we use a separate test folder to hold test files and workspace configurations. |
Makes sense to me. A separate settings.json for tests sounds ideal. |
FYI we have a testing flag now in globals, could be used here potentially... |
What did you do?
Ran the test suite for the project from VSCode debug. I have some custom "normal"/"other" remaps in my
settings.json
(to accomodate dvorak motion keys)What did you expect to happen?
The test suite should pass, and not be affected by my key remaps
What happened instead?
Many tests fail due to my personal key remappings. For example:
I verified that it was due to the remappings by disabling my customizations in
settings.json
and re-running the tests.Technical details:
5a2bce3e39303be6e914c04b43e0c3f896b306e4
)The text was updated successfully, but these errors were encountered: