Граф коммитов

41 Коммитов

Автор SHA1 Сообщение Дата
Garrett Campbell f47c79f5e0
Add expansion, inheritance, include tests (#4137)
* 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
2024-11-06 14:34:12 +00:00
Garrett Campbell 46f2d16e31
Refactor and improve test infrastructure, starting with automated version validation tests (#4126)
* 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
2024-10-21 11:02:35 -07:00
Garrett Campbell 0caa30b385
add recommended extensions (#3673) 2024-04-04 17:07:33 +00:00
Elaheh Rashedi 896f499b99
CMake Multi Root and Multi Project support (#2835) 2022-12-27 08:46:15 -08:00
Bob Brown 346755d161
Enable "no misused promises" lint rule (#2630) 2022-07-06 21:49:38 +00:00
Bob Brown 0dc215db02
Followup to #2266 (#2414) 2022-03-04 11:11:23 -08:00
Colin Duquesnoy fe831f4305
Allow to launch multiple targets with the launch button of the status bar (#2266) 2022-03-04 10:22:10 -08:00
Bob Brown 2b91e8517c
Fix tests and enable Windows CI (#2295) 2021-12-20 15:31:43 -08:00
Yonggang Luo 3aea7ff8f9
Enable backendTests in CI (#2264)
Launching backendTests without the need of compiling typescript for better developing experience.
2021-11-29 09:58:59 -08:00
Bob Brown 33ffa5d3be
Reindent the files (#2226) 2021-11-03 09:52:24 -07:00
Elaheh Rashedi 75c91a1889
(#1 in order) upgrade the tests [ready] (#1881) 2021-06-14 11:01:00 -07:00
Xinyu Sui 7ebdeb264f Fix webpack watch 2021-02-24 21:02:04 -08:00
Vitaly Poterba a9f059bf61
Initial tasks support (#1268)
* Check added

* Get last argument from command as workspace folder

* Cast corrected

* Casts fixed

* VSCode settings update

* Cast fix

* Initial tests added

* Task result variables fixed in tests

* tasks.json in tests replaced with Task objects

* Fixed expectations to simple object check

* cwd set for tasks in tests

* Task source changed to `shell`

* Initial taskprovider added

* Unnecessary cast removed

* Formatting reverted

* Strange extra spaces removed

* Comments fixed

* Some code formatting reverted

* Tests formatting reverted

* Build task supported

* Removed configure task from tests

* Unqouted unnecessarily quoted property

* Assertion avoided

* buildAll fixed

* Remove task test

* Added failing check

Co-authored-by: Andreea Isac <48239328+andreeis@users.noreply.github.com>
2020-10-16 05:37:15 -07:00
Andreea Isac 40a6205d55 More clarity around amd64 - x64 architecture name aliases. Don't detect arm(64) kits if not installed. 2020-04-09 15:26:38 -07:00
Andreea Isac 74c3f6cd70 Fixes for GitHub issues 964 and 1084 2020-04-07 10:54:49 -07:00
xisui-MSFT 6ccd3057bb
Added command to hide launch and debug commands and debug button (#1035) 2020-02-03 14:47:20 -08:00
xisui-MSFT 4fa7e036a7 Multi-root support (#958) 2020-01-16 13:31:31 -08:00
Bob Brown 8d607fb3e1
avoid prompting for kit selection over and over (#854) 2019-10-31 11:33:34 -07:00
Bob Brown b9bf490ac2
workspaceRoot -> workspaceFolder (#831) 2019-10-17 08:50:22 -07:00
Colen Garoutte-Carson 8728b7e295 localization plumbing 2019-09-04 15:36:10 -07:00
Randshot 59d71f9c9a Update variable substitution tests 2018-07-26 15:11:33 +02:00
vector-of-bool 875f940855 Smoke testing engine 2018-06-16 17:51:04 -06:00
KoeMai c669037d12 Prepare project for backend unit tests without vscode
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
2018-04-22 21:21:22 +02:00
vector-of-bool e5b15a080b Add debug config for vs-preferred-gen 2018-03-17 16:54:40 -06:00
vector-of-bool 617d464daa Add an `npm` task 2018-03-15 22:10:31 -06:00
Randshot 592b177b76
Changes:
- Fix launch.json
- Fix installPrefix config option
- Format configure-and-build-test.ts
- Add some tests for variable substitution

Signed-off-by: Randshot <randshot@norealm.xyz>
2018-03-14 17:54:21 +01:00
Yuri Timenkov de0772972a
Merge pull request #339 from ytimenkov/feature/contribution-manual
Initial version of contributing guidelines.
2018-03-11 08:08:55 +01:00
Yuri Timenkov ed0c92046f Initial version of contributing guidelines.
Upgraded tasks to version 2.0 for automatic detection.
Added clang-format as npm package
2018-03-11 00:33:17 +01:00
KoeMai dc5121416b Work in review comments.
- Fix name convention for methods, files, folder, variables
- Fix typos
- Replace declaration of class members by in constructors if possible
2018-03-10 19:51:23 +01:00
KoeMai 2fcc781bc6 Add first draft for configuration and build
- Add to launch
- Add  draft for tests
2018-03-06 20:40:07 +01:00
KoeMai 27388cd2a8 Fix double execution of extension tests
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
2018-03-03 13:59:39 +01:00
KoeMai d5be9094fa Move and separate first tests for extension testing into separate folder
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
2018-03-03 13:59:39 +01:00
KoeMai 7aa909d085 Add test condition to skip no kit tests if Visual studio is present 2018-02-20 21:16:39 +01:00
vector-of-bool 2d10c61e1b Format everything with Clang 6.0, and import a clang-format config 2018-02-17 20:30:31 -07:00
vector-of-bool 422f06b9d6 Fix test path 2017-11-16 18:59:15 -07:00
vector-of-bool ebb69855d8 Start on some testing, more reliable than the old tests. 2017-09-28 01:04:51 -06:00
vector-of-bool 2a11ad5166 Developer documentation 2017-09-24 22:03:36 -06:00
Yuri Timenkov d15468c738 User-facing logging.
* 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.
2017-06-07 12:06:46 +02:00
vector-of-bool c52b0299e6 Not all tests pass, but working towards cmake-server support 2016-11-14 20:09:29 -07:00
vector-of-bool 12e5750a47 Manual merging develop in 2016-11-12 14:31:25 -07:00
vector-of-bool c974e8fd40 Initial 2016-04-16 15:36:19 -06:00