forked from yoctoproject/vscode-bitbake
-
Notifications
You must be signed in to change notification settings - Fork 0
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 integration tests #30
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deribaucourt
force-pushed
the
add-client-tests
branch
2 times, most recently
from
October 20, 2023 15:17
93bfbce
to
a166042
Compare
idillon-sfl
approved these changes
Oct 20, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks cool!
Integration tests will allow running the extension in a live vscode window. We'll have to use mocha instead of jest for these because jest doesn't support programmatically being run in the current process (always forks).
Because integration tests will need the server and the client at the same time, their sources will be placed in the common `src` directory. Setup the typescript configuration to build the integration tests.
This test runs a VSCode instance and checks that one bitbake setting is properly read.
Add configurations to debug the integration tests.
This separates the Jest test script from the npm run test script.
When running in some environments, the test could be run before VSCode had finished opening the workspace (happens asynchronously).
The GitHub action runner has no screen and VSCode wants one. Run it in a virtual X server.
deribaucourt
force-pushed
the
add-client-tests
branch
from
October 23, 2023 07:51
a166042
to
f98cba3
Compare
This makes it clear that the `src` folder does not provide any functionality to the extension itself, but is only used for testing.
Thanks for your suggestions! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.