Skip to content
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

Add Positron instantiation service test helpers; refactor tests to use runtime services #5335

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

seeM
Copy link
Contributor

@seeM seeM commented Nov 12, 2024

This is in preparation for writing unit tests for the runtime session service since I intend on making changes to it for #2671.

The main addition is the positronWorkbenchInstantiationService function, which sets up a test instantiation service with a bunch of test dummies, following upstream's workbenchInstantiationService function. I also refactored our existing unit tests to use the new function.

QA Notes

  1. Positron unit tests should pass. They can be run locally with:

    ./scripts/test-positron.sh
  2. There are a few minor code changes to runtime-related code, mainly to fix leaked disposables, which could use a review.

@seeM seeM requested review from jmcphers and nstrayer November 12, 2024 14:54
Copy link
Contributor

@nstrayer nstrayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good to me. Ran the tests locally and they all passed.
I think the new api thanks to the positronWorkbenchInstantiationService is much clearer!

@seeM seeM merged commit fbd8b46 into main Nov 13, 2024
3 checks passed
@seeM seeM deleted the 2671-refactor-runtime-tests branch November 13, 2024 16:36
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants