Когда я создаю свой проект в TFS 2015, я настроил для запуска все тесты модулей/кода. Испытания проходят, и все они проходят. Проблема, с которой я сталкиваюсь, заключается в том, что результаты не отображаются в сводке сборки или в любом месте. Любая причина, почему не появляется?Результаты тестирования Team Foundation Server 2015
Я смотрел на журналы и я получаю это предупреждение:
Результаты Файл: C: \ BuildAgent_work \ 1 \ TestResults \ имя_сервера $ _serverName 2015-12-03 15_56_33.trx
Общее количество тестов: 533. Прошло: 533. Ошибка: 0. Пропущено: 0.
Test Run Successful.
Test Время выполнения: 29.5985 секунд
публикации результатов испытаний ...
## [предупреждение] Недействительные файл результатов. Пожалуйста, убедитесь, что в поле Формат Результат теста в задаче соответствует формату результата файла: C: \ BuildAgent_work \ 1 \ TestResults \ имя_сервера $ _serverName 2015-12-03 15_56_33.trx
I посмотрел на файл
имя_сервера $ _serverName 2015-12-03 15_56_33.trx`
<?xml version="1.0" encoding="UTF-8"?>
<TestRun id="730b84f3-e06c-4d30-8994-15aa6ff385df" name="[email protected] 2015-12-03 15:56:33" runUser="NT AUTHORITY\NETWORK SERVICE" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Times creation="2015-12-03T15:56:33.2204061-05:00" queuing="2015-12-03T15:56:33.2204061-05:00" start="2015-12-03T15:56:33.2204061-05:00" finish="2015-12-03T15:57:01.4723683-05:00" />
<TestSettings name="default" id="d53ac855-fee0-4c64-9372-227e08990a04">
<Execution>
<TestTypeSpecific />
</Execution>
<Deployment runDeploymentRoot="serverName$_serverName 2015-12-03 15_56_33" />
<Properties />
</TestSettings>
<TestLists>
<TestList name="Results Not in a List" id="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
<TestList name="All Loaded Results" id="19431567-8539-422a-85d7-44ee4e166bda" />
</TestLists>
<ResultSummary outcome="Completed">
<Counters total="0" executed="0" passed="0" failed="0" error="0" timeout="0" aborted="0" inconclusive="0" passedButRunAborted="0" notRunnable="0" notExecuted="0" disconnected="0" warning="0" completed="0" inProgress="0" pending="0" />
<Output>
<StdOut>NUnit 1.2.0.0 executing tests is startedLoading tests from C:\BuildAgent\_work\1\a\App.Tests.dllRun started: C:\BuildAgent\_work\1\a\App.Tests.dllLoading tests from C:\BuildAgent\_work\1\a\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dllRun started: C:\BuildAgent\_work\1\a\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dllNUnit 1.2.0.0 executing tests is finished</StdOut>
</Output>
<RunInfos>
<RunInfo computerName="serverName" outcome="Warning" timestamp="2015-12-03T15:56:31.8163881-05:00">
<Text>Diagnostic data adapter message: Could not find diagnostic data adapter of type 'Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector' and Uri 'datacollector://microsoft/CodeCoverage/2.0'.</Text>
</RunInfo>
<RunInfo computerName="serverName" outcome="Warning" timestamp="2015-12-03T15:56:32.8460013-05:00">
<Text>Unable to create DiaSession for C:\BuildAgent\_work\1\a\App.Tests.dll
No source location data will be available for this assembly.</Text>
</RunInfo>
<RunInfo computerName="serverName" outcome="Warning" timestamp="2015-12-03T15:57:01.1759645-05:00">
<Text>System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain. This can happen if the test(s) started a thread but did not stop it. Make sure that all the threads started by the test(s) are stopped before completion.</Text>
</RunInfo>
</RunInfos>
</ResultSummary>
</TestRun>
Какая версия Visual Studio установлена в агенте сборки? –
Вы используете сборку XAML или vNext? Создан ли этот проект? Не могли бы вы поделиться своими подробными инструкциями о том, как создать свое решение и как его построить? –
У меня была неправильная версия VS. Удалите 2013 и установите 2015, и все работает. – Valter