vscode-meson icon indicating copy to clipboard operation
vscode-meson copied to clipboard

Test output should be easier to view

Open justin-mccann opened this issue 2 years ago • 1 comments

I find it difficult to find the test log output when using the Meson test controller; maybe I'm not looking for it in the right place.

When I've run the "Test: Show Output" command, the meson tests usually just show "The test run did not record any output". Also, the few times I did get it to display the test output, the lines were not properly line-wrapped in the display. The display format does require you to replace newlines with \r\n; see the doc here: https://code.visualstudio.com/api/extension-guides/testing#test-output

The vscode-python extension creates a separate vscode OutputChannel for its tests and uses that, so you can go to the Output pane and select the "Python Test Log" channel in the dropdown. This makes it very easy to find the test output. Creating one of those for the Meson tests might be a big win.

I will say that the Python extension's implementation to create and wire it in is a bit complex, but I don't think that's really necessary.

justin-mccann avatar Mar 14 '23 19:03 justin-mccann

This seems like a pretty solid idea. Thanks for bringing it up. Not sure when it will be gotten to though.

tristan957 avatar Nov 29 '23 06:11 tristan957