PartCover генерирует пустой выходной файл

В настоящее время я пытаюсь создать задачу Nant для нашей установки TeamCity, чтобы наши UnitTests проходили через Gallio и покрывались PartCover. Задача выглядит так:

<!-- UnitTest Configuration -->
  <!-- ====================== -->
  <!-- This configuration runs the tests through Gallio with MbUnit together with
       PartCover to get the results of the test together with the coverage results 
  -->
  <target name="unitTest">      
        <echo message="Unittesting ${AssemblyToTest}"/>
        <exec program="${Paths.Tools}\PartCover\Partcover.exe" failonerror="true">
          <arg line="--target &quot;${Paths.Tools}\Gallio\Gallio.Echo.exe&quot;" />
          <arg line="--target-work-dir ${AssemblyToTestLocation}"/>
          <arg line="--target-args /r:Local &quot;${AssemblyToTest}&quot;" />
          <arg line="--include &quot;[${Tests.TestedAssemblyName}]*&quot;" />
          <arg line="--output ${Paths.Output}\Coverage.xml" />
        </exec>
  </target>

Тесты запущены, мы видим это в TeamCity, и файл Coverage.xml создается, но пустой. Там только одна строка.

Вывод переменных: -

  • $ {Paths.Tools}: C: \ Robinson \ Trunk \
  • $ {Tests.TestedAssemblyName}: имя библиотеки DLL
  • $ {AssemblyToTestLocation}: путь к DLL

Я что-то пропустил?

РЕДАКТИРОВАТЬ Приложение TeamCity работает на Windows Server 2003 R2 Server, и все агенты сборки, выполняющие эту работу, в настоящее время работают в системах Windows XP, все 32-битные установки.

1 ответ

Решение

Я думаю, что мы рассмотрели эту проблему в https://github.com/sawilde/partcover.net4/issues/46

и решение было по линии

--include [${Tests.TestedAssemblyName}*]*?

Другие вопросы по тегам