thenbe / neotest-playwright

A playwright adapter for neotest.
MIT License
39 stars 5 forks source link

Feature: Open test attachments (video, trace, etc) #2

Closed thenbe closed 1 year ago

thenbe commented 1 year ago

It would be very convenient if we could launch the trace for the test under the cursor or from neotest's summary tree.

npx playwright show-trace trace.zip

The same goes for video.

To achieve the above, we would need to rely more on the test id's generated by playwright, which is a:

Unique test ID that is computed based on the test file name, test title and project name. Test ID can be used as a history ID.

Once we do, we'll be able to identify any attachment for any individual test, including trace, video, screenshots, etc.