* Move the presets tests to integration tests.
These tests aren't true 'unit' tests by definition, so moving them to
integration.
Also, added include and CMakePresets/CMakeUserPresets tests.
* add inheritance and expansion and override tests
* fix formatting of test file
* fix linter issues
* fix lint issues
* fix path
* make tests better across platform
* fix lint
* renamed to end-to-end-tests and moved backend unit tests to unit-tests folder
* create folder for kits code, refactor imports to use @cmt and @test
* move variants into the kits folder
* refactor into better folder structure, still more to go
* Initial refactor making presets validation unit testing possible.
This seems to work well so far, I have v1-v3 presets tested, with some
more refactors regarding error reporting to come. However, the
design/infrastructure refactor seems to be allowing us to unit test
validation.
* implemented Presets version validation automated testing
* Added version testing for presets v1-9.
This adds testing for our version validation for all Presets versions
currently supported.
It creates presets on the fly and ensures that we correctly get errors,
or don't, depending on the setup and what fields are present with what
versions.
* fix workflows
* Ensure that we correctly initialize the presetsParser class
* refactor imports
* refactor imports
* more import fixes
* imports in projectStatus
* missed one
* workflow imports
* added comment about definite assignment
* add comments
* fix launch file to make sure breakpoints happen
* fix syntax error
At the moment all tests run inside of vscode. For the backend tests it is not
necessary. This commit prepares the test environment to execute non
vscode unit tests.
- Add example test
- Add to launcher
- Add to ci scripts
The unit test tries to execute extension tests and it failed. This
makes it necessary to move of the unit tests into a separate folder.
- Move all unit test related files to unit_tests
- Adde new get function for the testRoot
- Rename getter for testFilePath
- Replace testFilePath('fakebin') with getter of test root
- Replace testFilePath for others with getter of test ressource
- Fix path in test files
This modification should separate extension tests from internal tests.
This allows us to use different project folder for testing of different extension use cases.
- Create run script for extension tests
- Move "No present kit" extension tests into separate folder
- Add launch config for extension tests without cmakelist in folder
* CMakeToolsWrapper doesn't inherit from API but rather aggregates it
and provides access.
* Added logger which writes to the same output as CMakeTools to enable
users fix problems with the envrironment (e.g. missing CMake binary).
* Disable CMakeTools commands and key bindings if CMake Server has
failed to initialize. This avoids 'command not found' messages.
* Minor fixes to make tslint happy.