-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 tests
namespace from VSCode API
#10669
Comments
Would be nice to have, e.g. for integrating https://github.com/robocorp/robotframework-lsp with Test Explorer view in Theia. |
Note that the test API has been stubbed for now. So extensions using this API aren't blocked from running, but usages of the test API won't have any effect. |
Hello, I speak on behalf of the student project team from Polytechnique Montreal (Kevin, Théo, Mathieu and Zakaria). This is our first time contributing and we would like to work on this API. We are still going through some tutorials and documentation to make sure we understand how to implement this feature (we might have a slow start). Here is what we are doing right now in order to understand how to implement the Test API:
Question:
Are we missing something? Is there some documentation or examples we should read? |
Hi, are the test coverage and observer part not to be considered in the implementation based on this issue as the functions like |
|
The functions you are listed are part of vscodes proposed api. If i rememeber correctly proposed api is not required to be compatible. @planger is this correct? |
We talked about this in today's DevMeeting. From what I understood, if the Test API doesn't make heavy use of the proposed API, then there is no need to implement it. |
I wanted to add some information of something that we found during the last month. There are some UI implementation to be done to make this API complete. There is something called
When we first looked at this issue we didn't think there was any UI implementation to be migrated. Is this part of the issue? |
We discussed this in a Dev Meeting and the answer is yes. The UI must be migrated as well. |
@JonasHelming @D-Zaq @mathblin @paul-marechal @colin-grant-work @MatthewKhouzam @tsmaeder Known issues:
Implemented:
Note: The following diagram shows the files that were added or modified to make Plugin Host work:
draw.io file: migrated-and-changed-files.zip Not implemented:
Note: The following diagram shows the files from VS Code that we think should be imported for the Main Browser and UI to work (other files might be missing) :
draw.io file: files-to-migrate.zip |
Feel free to ask any questions about the report or the code before the next meeting on May 2th. That way we will be able to answer them in more detail at the meeting. |
Here is a simple extension that pokes the functions vsix file: test-api-functional-test-0.0.2.zip Once the extension is installed in Theia, execute the command |
I'm thinking about what UI we would have to have to implement this API:
In a first step, we could leave out the marker support, since that duplicates functionality from the Test Explorer view. The "peek error" support in VS Code could maybe be replaced by a hover on failed tests. We could also kind of ignore "continuous run" capabilities by always requesting "continuous=false" when running tests. Any "proposed" functionality like coverage or TestObserver could be safely stubbed. |
So a preliminary plan might be:
|
Some further notes...
|
Note that propagating test run results is also something that might happen at a fast pace an profit from batching. We have to keep in mind that we might have to match a particular result to the location in the test item tree and design data structures accordingly. |
- Adapted plugin-side services to work with Theia test service - Added views for test runs, results and output - Built out Test Explorer view - Added various commands to run tests and manage results The result is a minimal, but functional UI for working with tests Fixes eclipse-theia#10669 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
- Adapted plugin-side services to work with Theia test service - Added views for test runs, results and output - Built out Test Explorer view - Added various commands to run tests and manage results The result is a minimal, but functional UI for working with tests Fixes #10669 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Feature Description:
Add function from the
tests
namespace:Add required variables, functions and fields from
root
namespace:VSCode API for reference: https://code.visualstudio.com/api/references/vscode-api#tests.
The text was updated successfully, but these errors were encountered: