Closed emilyst closed 4 years ago
Opened to help me with https://github.com/hbenl/vscode-test-explorer/issues/136.
Does this require changes in the Test Explorer UI extension to work or will it work without them?
Does this require changes in the Test Explorer UI extension to work or will it work without them?
These fields exist in Test Explorer UI since version 1.8.0, released about three months ago (directly after this commit).
It occurs to me I might need to update package.json
to require 1.8.0 due to my previous comment. I'm running the extension in the debugger now to make sure it works.
I have amended the commit to make two changes.
vscode-test-adapter-api
which contains the fields on which I rely.file
and line
field on the TestEvent
itself. It appears that setting the TestEvent fields this way signals that the Test Explorer UI should look for the test in a different place after running, causing some confusion. It's really only necessary to set it on the TestDecoration for my purpose.
When the TestEvent fires, it may contain a file name and a line number to suggest where the event took place.
This commit adds the file name and line number to the TestEvent and to its TestDecoration.