-
Notifications
You must be signed in to change notification settings - Fork 181
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
Code Action Testing #828
Code Action Testing #828
Conversation
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.
This is great, thank you for adding these tests and for reducing the test time! 💯
ada78b6
to
f525099
Compare
be55045
to
fd66c2b
Compare
Standardize test runner by extracting duplicated invocation information and seperating the execution of terraform from the individual extension tests. Move integration tests to dedicated folder called `integration`. This organizes the tests and will allow UI specific tests in the future to be seperate from integration or unit tests. Remove explicit activation of extension and pausing to give time for extension to activate. This is already accomplished by our eactivation events. Add mocha chai library and update tests to properly teardown after execution. Add code action and completion tests to round out initial set of integration tests.
fd66c2b
to
266842b
Compare
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Add tests for the code actions added in hashicorp/terraform-ls#680.
Moves the tests to the
suite
folder and separates them from the test harness files.Removes the activate method, which reduces overall test time by ~20-30 seconds. The activate method isn't needed because the extension is started in the
testFixture
folder, which has Terraform files that will trigger activation using our existingactivationEvents
. This method also slept for 8000ms, which isn't necessary with recent LS releases.Needs hashicorp/terraform-ls#680 to merge