microsoft / testfx

MSTest framework and adapter
MIT License
779 stars 259 forks source link

[Guidance/Documentation] Message Bus Artifacts #3261

Open thomhurst opened 4 months ago

thomhurst commented 4 months ago

In the new testing platform, when using the message bus, apart from the main use of publishing test node updates, there's also a few other things we can publish out of the box, mainly being artifact objects.

image

I can't see any documentation on these so just wondered:

So overall this issue is for better documentation around artifacts and how you envision any framework creators using them.

Evangelink commented 4 months ago

Thanks for the feedback, we will definitely improve this part of the documentation.

there's also a few other things we can publish out of the box, mainly being artifact objects.

You can virtually push any object to the push but for it to have any sense, you need to have some subscriber registered.

What do you see as a Session artifact?

A code coverage report is a session level artifact, it's attached to the test session and not to a given test. On the opposite, with MSTest, you can attach specific arbitrary documents to a given test, doing so we would push a TestNodeFileArtifact.