Escriba xunit.console.exe /?
en una consola y mire al final de la lista de opciones.
> xunit.console.exe /?
xUnit.net console test runner (64-bit .NET 2.0.50727.4952)
Copyright (C) 2007-10 Microsoft Corporation.
usage: xunit.console <xunitProjectFile> [options]
usage: xunit.console <assemblyFile> [configFile] [options]
Valid options:
/silent : do not output running test count
/teamcity : forces TeamCity mode (normally auto-detected)
/wait : wait for input after completion
Valid options for assemblies only:
/noshadow : do not shadow copy assemblies
/xml <filename> : output results to Xunit-style XML file
/html <filename> : output results to HTML file
/nunit <filename> : output results to NUnit-style XML file
Las dos últimas opciones se extraen del archivo de configuración y consisten en un archivo xslt aplicado a la salida de xunit. Si /nunit
no está presente, asegúrese de tener el archivo NUnitXml.xslt
en el directorio xunit y la entrada nunit
se declara en el archivo xunit.console.exe.config
.
Mi xunit.console.exe.config
archivo:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="xunit" type="Xunit.ConsoleClient.XunitConsoleConfigurationSection, xunit.console"/>
</configSections>
<xunit>
<transforms>
<add
commandline="html"
xslfile="HTML.xslt"
description="output results to HTML file"/>
<add
commandline="nunit"
xslfile="NUnitXml.xslt"
description="output results to NUnit-style XML file"/>
</transforms>
</xunit>
</configuration>
Si usted no es capaz de encontrar tesis archivos, es posible que tenga que volver a instalar xUnit.