Skip to content
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: make testing work again and improve coverage #84

Merged
merged 21 commits into from
Dec 30, 2024
Merged

Conversation

ashish10alex
Copy link
Owner

@ashish10alex ashish10alex commented Dec 28, 2024

WARN:
If you have previously compiled this project via a debugger or manually using npm. Delete the out directory before running the test using npm run test as the previous compilation will have artefacts from the past tests and will result in failure of the new tests.

NOTE:
The test would not be able to run if your project path is very long this is a known issue reported in microsoft/vscode-test#232. Also, we are having to remove .vscode-test/user-data before running vscode-test in the npm run test script in package.json. These tests currently are only tested to be running on mac os. We will need to change the script for npm run test in package.json for it to work in multiple platforms

  • Migrate to using vscode-test for testing
  • Migrate previous tests

Add tests for getQueryMetaForCurrentFile function for

  • Table
  • Assertions
  • Operation
  • Incremental

Output of tests passing

CleanShot 2024-12-29 at 13 27 04@2x

@ashish10alex ashish10alex marked this pull request as draft December 28, 2024 23:06
@ashish10alex ashish10alex changed the title feat: make testing work again feat: make testing work again and improve coverage Dec 29, 2024
@ashish10alex ashish10alex marked this pull request as ready for review December 29, 2024 13:35
@ashish10alex ashish10alex merged commit 2d23439 into main Dec 30, 2024
@ashish10alex ashish10alex deleted the testing_revamp branch December 30, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant