xUnit.net (xunit_dotnet.jar)
The xUnit.net launcher allows running test generated using xUnit.net.Configuration
Thexunit_dotnet.xml file allows pre-configuring the launcher with some default values:| Parameter | Description |
| General | |
| Test root path | This must indicate where are located all the xUnit.net tests. This is a root path. Each test in XStudio has a canonical path that will be appended to this path. This path MUST not include an ending slash. Default value is: C:/test_repository/tests/xunit
|
| xUnit.net | |
| xUnit console path | This must indicate the path where xUnit.net has been installed. Default value is: Y:/Externals/xunit-1.7-beta
|
These values can be changed while creating the campaign session from XStudio.
Requirements
The tests are executed by the launcher using this syntax:"<xUnitConsolePath>/xunit.console.exe" "<testRootPath>/<testPath>/<testName>.dll" /nunit "<testRootPath>/<testPath>/xunit_report.xml"
The test will be marked as passed or failed depending on the content of the result file (
xunit_report.xml) generated.
The
xunit_report.xml file is also attached to the testcase execution in XStudio.