Skip to content

Simplify tests#1196

Merged
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:consolidate-tests
Apr 2, 2026
Merged

Simplify tests#1196
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:consolidate-tests

Conversation

@datho7561
Copy link
Copy Markdown
Contributor

@datho7561 datho7561 commented Jan 23, 2026

What does this PR do?

  • Use the vscode-test command line instead of a separate script in order to run the tests.
  • Add proper teardown to some test suites that didn't have it

Switching over to the vscode-test cli changed the order in which the tests are executed. Since some tests didn't have proper teardown, the following tests in the suite started failing. By adding the proper teardown (and in one case changing the expected result) I got them passing again.

What issues does this PR fix or reference?

N/A

Is it tested? How?

CI

@datho7561 datho7561 force-pushed the consolidate-tests branch 5 times, most recently from 89131ed to eeeedd3 Compare January 26, 2026 18:14
@datho7561 datho7561 force-pushed the consolidate-tests branch from eeeedd3 to f25ba47 Compare April 2, 2026 17:52
- Use the vscode-test command line instead of a separate script in order to run the tests.
- Add proper teardown to some test suites that didn't have it

Switching over to the vscode-test cli changed the order in which the tests are executed.
Since some tests didn't have proper teardown, the following tests in the suite started failing.
By adding the proper teardown (and in one case changing the expected result) I got them passing again.

Signed-off-by: David Thompson <davthomp@redhat.com>

Reduce expected number of calls to get tests passing

It used to be 2 because a document from a previous test was left open,
which triggered the update twice (once during the direct invocation,
and once during the faked document changed notification).

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 force-pushed the consolidate-tests branch from f25ba47 to 0169408 Compare April 2, 2026 17:55
@datho7561
Copy link
Copy Markdown
Contributor Author

Might as well get this merged in, it keeps getting stale so the sooner I make the change the less work it'll be later.

@datho7561 datho7561 merged commit 0623c09 into redhat-developer:main Apr 2, 2026
5 checks passed
@datho7561 datho7561 deleted the consolidate-tests branch April 2, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant