Pregunta

He intentado los pasos enumerados aquí , pero todavía puedo 't conseguir partcover para generar cualquier salida que no sea:

<?xml version="1.0" encoding="utf-8"?>
<PartCoverReport ver="2.2.0.36423" />

Esto es lo que he hecho:

  1. Instalado 2,2 en lugar de 2,3
  2. corflags
  3. Ran / Fuerza / 32 bits + PartCover.exe
  4. corflags
  5. Ran / Fuerza / 32 bits + PartCover.browser.exe

Aquí está mi línea de comandos:

partcover --target nunit-console-x86.exe --target-args unittests.dll  --include +[*]* --output c:\temp\out.txt

Al ejecutar este comando, aquí está la salida me sale:

Start target
Wait results
NUnit version 2.5.0.9117 (RC)
Copyright (C) 2002-2008 Charlie Poole.\r\nCopyright (C) 2002-2004 James W. Newki
rk, Michael C. Two, Alexei A. Vorontsov.\r\nCopyright (C) 2000-2002 Philip Craig
.\r\nAll Rights Reserved.

Runtime Environment -
   OS Version: Microsoft Windows NT 6.0.6002 Service Pack 2
  CLR Version: 2.0.50727.4200 ( Net 2.0.50727.4200 )

ProcessModel: Default    DomainUsage: Single
Execution Runtime: net-2.0.50727.4200
.Gendarme v2.4.0.0
Copyright (C) 2005-2009 Novell, Inc. and contributors

Initialization: 1.1 seconds
unittests.dll: 2.4 seconds

One assembly processed in 3.5 seconds.
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
.................................
Tests run: 1076, Errors: 0, Failures: 0, Inconclusive: 0 Time: 19.071907 seconds

  Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0

Walk results

¿Alguien tiene alguna sugerencia que podrían ayudar? Gracias!

¿Fue útil?

Solución

OK, aquí es lo que hice para solucionar el problema, además de los pasos anteriores:

Añadir un archivo de configuración: settings.xml

<PartCoverSettings>
  <Target>nunit-console-x86.exe</Target>
  <TargetArgs>unittests.dll</TargetArgs>
  <Rule>+[*]*</Rule>
</PartCoverSettings>

Ejecutar con esta línea de comandos:

partcover --settings settings.xml --output out.xml

Y que produce un archivo XML.

Además, no tenía necesidad de rebajar a 2,2. 2.3 parece que funciona muy bien para mí ahora ...

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top