How to run XUnit Tests with Jenkins

I just started with XUnit and configured Jenkins, and I wanted to ask if there is a way to run XUnit Tests directly launched by Jenkins, and not using the Windows batch command command that runs the XUnit console operator.

I know that it is possible to run XUnit tests by running a Windows command through the Console Runner, but im looking for a plugin / everything, for example, that includes XUnit Runner, and you should only point to the DLL so that it runs the tests and processes the output XML

+4
source share
3 answers

No, there is no Jenkins plugin to run xUnit.net tests.

- Windows Jenkins.

, , xUnit XML xUnit.net , .

+4

xUnit Jenkins.

1) xUnit.
2) xml xUnit ( https://github.com/Faizan2304/LoggerExtensions, "dotnet test" ).
3) :

step([$class: 'XUnitBuilder',
    thresholds: [[$class: 'FailedThreshold', unstableThreshold: '1']],
    tools: [[$class: 'XUnitDotNetTestType', pattern: '{path to your xml file}']]])
+2

xUnit Jenkins xUnit.net:

1.93
* โ€‹โ€‹ xUnit.net v2

+1

Source: https://habr.com/ru/post/1628809/


All Articles