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

TEST RESULTS output gets truncated

Open alekdavis opened this issue 10 months ago • 2 comments

Is there a limitation for the text output in the TEST RESULTS window? I just noticed that for relatively numerous tests (over 100), TEST RESULTS output starts losing top entries. I suspect that this may be a VSCode problem. Could it be a setting? I searched the web but did not find anything relevant (maybe I did not use the correct words). Also noticed that if I select a test in the right panel of the TEST RESULTS windows (the tree view holding test results), then the TEST RESULTS output shows the test results of the selected test and even for the tests that have been truncated. But at this point, I cannot figure out how to return to the full (or truncated) test results output. Kinda weird. Any thoughts?

alekdavis avatar Mar 07 '25 19:03 alekdavis

I wouldn't know what the limit is at the moment, or I wouldn't have actively set anything. Is the output also truncated in the OutputChannel?

I have poked around in the documentation and logic of VSCode. I couldn't find anything in the documentation. However, in the code there is a variable RETAIN_MAX_RESULTS with the value 128, which could be suspicious.

AnWeber avatar Mar 10 '25 19:03 AnWeber

I did not count, but it seems close enough. I have 3 test files with each holding about 60-90 tests and when I run all 3 of them, I get about half retained in TEST RESULTS (I can run each just fine). Maybe it's a coincidence, but it does seem related.

The output request results do not get truncated, so fortunately, this part is working.

alekdavis avatar Mar 10 '25 20:03 alekdavis