-
Notifications
You must be signed in to change notification settings - Fork 5
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
Create local QGIS unit tests #813
Comments
We can still run all tests over docker. Any tests that do not involve the actual plugin to be loaded (ribasim_qgis/core files) can be run locally. VS Code does not understand where to find the tests, since VS Code cannot do both pytest and unittest at the same time. But you can run it over F5 and simply make it run that one test file. @visr @Hofer-Julian If you are alright with these kind of tests we can close the issue. |
I have posted an issue about the test discovery not being successful now that I have conda installed on my computer. |
Yes, let's close it! |
@Hofer-Julian There is a PR enclosed to this ticket |
Ah, good that I am in the process of reviewing that one :P |
Can be run by calling `pixi run code.` to ensure the environment is set correctly, then simply run it by pressing F5 to debug the local file. The tests also run over `pixi run test-ribasim-qgis` in docker. The tests cannot be found by VS code, since we are mixing `unittests` and `pytest` and VS Code can only handle one type. Also, it seems to try to activate a conda environment that is not present. Fixes #813
The tests can currently only run in the QGIS environment over docker. It would be easier in the workflow if we could create unit tests that can simply be run and debugged in vs code.
This might already work, but we have no tests proving it.
The text was updated successfully, but these errors were encountered: