nunit / teamcity-event-listener

NUnit Engine extension that helps integration with teamcity
MIT License
11 stars 10 forks source link

Add test properties to TC metadata #88

Closed elv1s42 closed 8 months ago

elv1s42 commented 11 months ago

This PR implements https://github.com/nunit/teamcity-event-listener/issues/87

elv1s42 commented 11 months ago

I created a local package from the source code and tested it, new metadata displayed properly and accessible via TeamCity API

NikolayPianikov commented 8 months ago

@elv1s42 Thanks for the PR. Can you send a screenshot with an example of how it is displayed in TeamCity?

elv1s42 commented 8 months ago

Closing the PR for now as more code changes required. Currently, TC does not receive TestCase and TestFixture properties

elv1s42 commented 8 months ago

@elv1s42 Thanks for the PR. Can you send a screenshot with an example of how it is displayed in TeamCity?

@NikolayPianikov , sorry, I missed the question. The metadata is diaplayed under the test node in TC: image

It's quite useful to see the default NUnit attribute values (like Description) as well as some custom values that you can add. For example, test metadata like logs and screenshots is displayed nicely too (there is no need to locate the files in build artefacts tab).

The issue that I am dealing with right now is that in some cases the metadata is not attached to the test. It happens for the metadata that is passed together with [TestCase] and [TestFixture] attributes. I want to deal with this issue first and then creata a new PR.