Commit Graph

43 Commits

Author SHA1 Message Date
Johannes Rieken
0d1a3c7c7c fix some any-casts in vsocde-api-tests (#270186)
https://github.com/microsoft/vscode/issues/269213
2025-10-07 08:16:31 -04:00
Matt Bierner
8225b496b1 Updating @types/node
Needs some minor code changes too to support the new typings
2025-03-24 13:02:28 -07:00
Benjamin Pasero
a870e67290 documents - expose encoding as proposed API (part of #824) (#240790) 2025-02-14 15:31:51 +01:00
Matt Bierner
09023d824a Try to fix flaky paste tests (#182574)
These tests fail occasionally in CI, seemingly only on linux. This tries to fix this by:

- Adding retries
- Switching back to use `teardown` to disposed of things. `usingDisposable` may not clean up properly if the test times out
2023-05-15 19:56:25 -07:00
Matt Bierner
9b6b547d2d Fix range when copying empty selection (#182227)
This fixes the range extensions get when copying an empty selection. As part of this, I've also:

- Added tests for this change
- Made the paste parts of the api optional. This is useful when a test provider only wants to add data on copy
2023-05-11 17:31:11 -07:00
Benjamin Pasero
ac084d723b notebook tests - run verbose (#165149) (#167212)
* notebook tests - run verbose (#165149)

* bumpb

* 💄
2022-11-26 11:37:52 -08:00
Sandeep Somavarapu
fe882ab334 api feedback (#164470)
* api feedback
- remove critical log level
- move log level off to be 0

* handle off log level

* fix disabling log level in tests

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2022-11-01 10:41:19 -04:00
Rob Lourens
8671778f8d Fix notebook execution test failures (#157290)
* Fix notebook execution test failures
An error thrown in an event handler did not cause the test to fail, using DeferredPromise. Adjusting the api event to account for Unconfirmed vs Pending states. And accounting for onDidChangeNotebookDocument being fired multiple times during a test, causing the test to complete early while execution was still happening.
Fixes #157067

* Remove log
2022-08-05 11:07:20 -07:00
Peng Lyu
f4433141c7 Move off asPromise (#155920)
* Troubleshoot asPromise

* Update batch edit api

* Update workspace edit

* fix #156663

* 💄
2022-08-01 21:09:41 +02:00
Daniel Imms
2584b60112 Merge branch 'main' into tyriar/120077 2021-12-16 11:34:16 -08:00
Johannes Rieken
b00e5cdbd0 use randomBytes for rnd file name generation, https://github.com/microsoft/vscode/issues/139217 2021-12-16 16:25:56 +01:00
Daniel Imms
b562ce7067 Use async/await in env var tests and improve polling
Fixes #120077
2021-12-15 12:28:36 -08:00
Matt Bierner
ab8e743520 Organize imports in ext tests 2021-08-11 16:55:51 -07:00
Rob Lourens
0d33806803 Add suiteRepeat test util 2021-05-19 14:29:32 -07:00
Rob Lourens
97518f5e86 Copy testRepeat helper to extension integration tests 2021-05-18 21:53:57 -07:00
Johannes Rieken
4fd610fc71 try bigger timeout awaiting events 2021-03-31 08:45:17 +02:00
Johannes Rieken
d9c653c8b6 increase default timeout for event waiting, fixes https://github.com/microsoft/vscode/issues/116704 2021-02-15 17:17:10 +01:00
Johannes Rieken
196bf678a1 reset dirty state when reverting a notebook, update extension host when dirty state of a notebook (working copy) changes 2021-02-15 11:44:51 +01:00
Johannes Rieken
52f633d19c some 💄, some API todos 2021-02-12 19:08:34 +01:00
Johannes Rieken
a0c75f6053 add tests for createXYZ functions and skip most of them... 2021-02-01 14:52:37 +01:00
Johannes Rieken
46cf57b264 a bunch of failing tests 2021-02-01 12:01:32 +01:00
Matt Bierner
4799714403 Remove extra awaits
These functions return void so we don't need to await them
2020-09-16 15:11:21 -07:00
Matt Bierner
a7285b471c Enable webview tests on remote as well (#102444)
* Enable webview tests on remote as well

* Delete conditional test type
2020-07-14 11:28:06 -07:00
Benjamin Pasero
ab1d1ad588 Web: integration test failures in workspace events (fix #102365) 2020-07-14 15:14:23 +02:00
Johannes Rieken
b0d056202b Use canonical uri for openTextDocument api, #93368 2020-05-29 18:16:31 +02:00
Benjamin Pasero
2585092dbe tests - reduce output of integration tests (#84283) 2020-01-15 12:56:22 +01:00
Benjamin Pasero
7c8b0844ec fix #87330 2020-01-14 10:48:10 +01:00
Benjamin Pasero
5099e36e3d fix #77735 2019-08-12 08:13:10 +02:00
Johannes Rieken
148f67d786 when running integration tests, use memfs instead of fs 2019-07-30 18:16:19 +02:00
Daniel Imms
d73c1a61b9 Tweaks to test running 2019-04-10 22:29:43 +02:00
Martin Aeschlimann
76323b1ac7 api tests for links 2019-02-15 10:17:41 +01:00
Matt Bierner
7b8e463099 Extract duplicated code 2018-10-05 16:11:32 -07:00
Matt Bierner
dd3e2d94f8 Remove use strict directives in extension code
We compile with alwaysStrict so these directives are not needed
2018-10-02 16:02:44 -07:00
Johannes Rieken
a979c73896 bulk edit provider listens on operation events only, add more test (partity disabled due to #52212), #10659 2018-06-19 12:47:28 +02:00
Johannes Rieken
85a0a67ce5 fix integration tests 2017-06-07 16:13:06 +02:00
Johannes Rieken
7b12aeb422 config-editing, api-test use strictNull-checks, #6907 2016-11-23 12:12:31 +01:00
Johannes Rieken
c18db474ba clean-up util using new event, #643 2016-10-13 10:29:03 +02:00
Johannes Rieken
196c630451 tsfmt - extensions/vscode-api-tests 2016-10-08 09:41:37 +02:00
Benjamin Pasero
d8412d0a5a fix tests? 2016-05-19 16:33:48 +02:00
Benjamin Pasero
7ceebcf8ab first cut green integration tests on windows 2015-12-04 16:17:54 +01:00
Joao Moreno
aba9d6bf3f better cleanup for api tests 2015-11-25 11:59:55 +01:00
Benjamin Pasero
e5d7c7a919 api tests: cleanup after test run 2015-11-25 10:29:02 +01:00
Benjamin Pasero
4ea2714df8 add more meaningful api tests 2015-11-25 08:44:13 +01:00