-
Notifications
You must be signed in to change notification settings - Fork 129
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
Unit and integration tests #990
Comments
Just want to say that I think given the size of this project now that it would be valuable to add more tests mostly for the obvious reasons
That being said testing in vscode does not appear to be straight forward. One issue in particular seems to be that you can't switch between workspaces (which I figured would be critical for us testing different setups/configurations). Having said that it seems to be easy enough to launch the tests on a single specific directory though by editing the
Potentially one idea could be to have multiple test scripts each loading a separate directory and then placing conditions on test suites to only fire if a certain directory is active ? Likewise I'm happy to help writing some of these tests as it will be a good opportunity to learn, that being said I will need some help / pointers as I've really been struggling to get my head around what is even possible with the vscode api sorry :( |
This issue is stale because it has been open for 365 days with no activity. |
unstale |
Currently, the testing no longer works in all recent PRs (#1290, #1296) where test fails with TypeError: util.config is not a function. No clue how to resolve this. Tried for a while but nothing worked. |
just spitballing - is it possible that there's a namespace collision between |
Tried renaming |
It's interesting that it's occurring just with Edit: Some interesting links:
Could have something to do with the headless tests? I can't replicate the issue locally |
I can't replicate it, either. Would be nice if we could make it work somehow again. |
I believe I have a fix! Will PR shortly Edit: See #1302 |
An issue I've found when approaching unit testing rmd knitting is that I have to mock the vscode API (e.g. |
we can probably leverage testthat or similar packages within child processes for consistency? |
This issue is stale because it has been open for 365 days with no activity. |
unstale |
Currently, we only have very limited testing of the features of vscode-R.
We might need to put a demo R package and R script folder in the repo and run tests with opening the folder as a workspace folder and test at least the following features:
The text was updated successfully, but these errors were encountered: