-
Notifications
You must be signed in to change notification settings - Fork 764
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
improve formatting of test output #187
Comments
Or more generally, https://code.visualstudio.com/docs/editor/tasks |
@firelizzard18 has done an extension which seems to supports the Source code (MIT License): |
My extension is a Test Adapter that plugs into the Test Explorer UI extension. I wrote/adapted the code to identify, execute, and collect the output of tests. The infrastructure is @hbenl’s work. My extension is somewhat barebones and does not integrate with A lot of the limitations stem from |
I investigated a bit the PHPunit extension, which has a colorized output. It uses a With the help of The tricky part would be to adapt the post-processing of the output that is currently done ( |
I love that colorization works with the test explorer but I noticed the command palette (and several other sources) still use the terminal. As far as I can tell, the test explorer version is feature complete (e.g. clickable links to source files). Is it feasible to route everything through the test explorer implementation? (Of course, you'd need to honor |
The plan is to rework the old test capabilities into the new test explorer framework. At that point, As long as |
@ysmood That is a change that needs to be made in VSCode. The test API provides a method to record output. That output goes to both the terminal and the peek view. There is no way to make different output show up in those two places. |
Atleast for tests, would a viable solution to be to have the Run[Package|Tile] Tests helpers above the functions execute the test via the Test Explorer to get coloring? It feels weird to have 2 different ways to run a tests that output like it currently does. |
@deefdragon That was my plan. First add test explorer support (which I’ve done), then incrementally refactor the original test support to use the new system. But I was contributing in my free time and I no longer have the time to work on this. |
This will be OBE if #3523 is merged, given that the plan is to replace the code lenses with the new test explorer system, as that would mean all test runs will go through vscode's testing API. |
#3523 provides opt-in code lenses (as in, disabled by default) that replace the existing ones and are integrated with the test explorer. |
See the original issue (microsoft/vscode-go#2003).
We should add colorization for test output. We can also look at other ways to improve the UI.
The text was updated successfully, but these errors were encountered: