xunit / xunit

xUnit.net is a free, open source, community-focused unit testing tool for .NET.

Home Page:https://xunit.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get running test name

jonparky opened this issue · comments

We have a situation at present where we need to get the name of the currently running test in order to display it on our remote automated test software.

Is there anyway of doing this ? similar to Nunits TestContext ?

Thanks

There is no facility for this today, nor any currently planned.

Dupe of #416 and related to #621
I would also like to see it to consider XUnit at all. Lack of this is hindering making TeamCity test reports helpful, because it's impossible to add extra information to error output because testStdErr requires the a name arguments in parallel test runs (see near 'Test output:' in TC docs).

i needed this for a few of my projects. so i bundled it into my xunit logging lib https://github.com/SimonCropp/XunitLogger#current-test