Я довольно новичок в продуктах Team City и Jet Brains в целом.
Я использую MSTest для запуска некоторых тестов (VS Unit Tests).Мне удалось настроить Team City для запуска тестов с использованием файла метаданных и списка тестов.
Однако Team City не сообщает обо всех тестах.Он говорит «9 пройдено» вместо «9 пройдено / 2 не выполнено»
Два теста, которые не могут быть прочитаны, являются тестами на основе данных.Это создает проблему?
Любая помощь будет принята с благодарностью.
Спасибо!
Из журнала сборки:
9/11 test(s) Passed, 2 Failed
Summary
-------
Test Run Failed.
Passed 9
Failed 2
----------
Total 11
Results file: ..\TeamCity\buildAgent\temp\buildTmp\tmp4E9E.tmp.teamcity.trx
Test Settings: Local
Run has the following issue(s):
EXEC Test Run deployment issue: The assembly or module 'XmlDiffPatch' directly or indirectly referenced by the test container '..\build\output\alpha\ds9\erpservicestest\bin\alpha\erpservicestest.dll' was not found.
The command ""..\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe" /runconfig:..\Build\Output\Alpha\DS9\Local.testsettings /testmetadata:..\Build\Output\Alpha\DS9\DS9.vsmdi /resultsfile:..\TeamCity\buildAgent\temp\buildTmp\tmp4E9E.tmp.teamcity.trx /testlist:ERPServices_IntegrationTests /test:Manufacturing_ManufacturingPlanning_CreateEngineeringMaster /testlist:ERPServices_IsAlive" exited with code 1.
##teamcity[importData id='mstest' file='..\TeamCity\buildAgent\temp\buildTmp\tmp4E9E.tmp.teamcity.trx']
Importing data from '..\TeamCity\buildAgent\temp\buildTmp\tmp4E9E.tmp.teamcity.trx' with 'mstest' processor
MSTest
[MSTest] Found 11 test definitions.
[MSTest] ERPServicesTest.InventoryServiceUnitTests.InventoryService_GetPart_IsAliveTest
[ERPServicesTest.InventoryServiceUnitTests.InventoryService_GetPart_IsAliveTest] [Test Output] Endpoint = ../ERPServices/InventoryService.svc
[ERPServicesTest.InventoryServiceUnitTests.InventoryService_GetPart_IsAliveTest] Done Building Project "..\TeamCity\buildAgent\work\478837a28017f91d\Build\Build_DS9.proj.teamcity.patch.tcprojx" (DeployTests;TeamCity_Generated_MSTestTests target(s)).
[MSTest] ERPServicesTest.PurchaseServiceUnitTests.PurchaseService_CreateSupplierReturn_IsAliveTest
[ERPServicesTest.PurchaseServiceUnitTests.PurchaseService_CreateSupplierReturn_IsAliveTest] [Test Output] Endpoint = ../ERPServices/PurchasingService.svc
[MSTest] ERPServicesTest.AuthorizationServiceUnitTests.AuthorizationService_GetUserByADUsername_IsAliveTest
[ERPServicesTest.AuthorizationServiceUnitTests.AuthorizationService_GetUserByADUsername_IsAliveTest] [Test Output] Endpoint = ../ERPServices/AuthorizationService.svc
[MSTest] ERPServicesTest.ManufacturingServiceUnitTests.ManufacturingService_GetWorkOrder_IsAliveTest
[ERPServicesTest.ManufacturingServiceUnitTests.ManufacturingService_GetWorkOrder_IsAliveTest] [Test Output] Endpoint = ../ERPServices/ManufacturingService.svc
[MSTest] ERPServicesTest.QualityServiceUnitTests.QualityService_GetAllStatuses_IsAliveTest
[ERPServicesTest.QualityServiceUnitTests.QualityService_GetAllStatuses_IsAliveTest] [Test Output] Endpoint = ../ERPServices/QualityService.svc
[MSTest] ERPServicesTest.GeneralServiceUnitTests.GetCountry
[ERPServicesTest.GeneralServiceUnitTests.GetCountry] [Test Output] Endpoint = ../ERPServices/GeneralService.svc
[MSTest] ERPServicesTest.PublicServiceUnitTests.PublicService_GetPMStatuses_IsAliveTest
[ERPServicesTest.PublicServiceUnitTests.PublicService_GetPMStatuses_IsAliveTest] [Test Output] Endpoint = ../ERPServices/PublicService.svc
[MSTest] ERPServicesTest.PurchaseServiceUnitTests.PurchaseService_AddReceiverNoteByReceiver_IsAliveTest
[ERPServicesTest.PurchaseServiceUnitTests.PurchaseService_AddReceiverNoteByReceiver_IsAliveTest] [Test Output] Endpoint = ../ERPServices/PurchasingService.svc
[MSTest] ERPServicesTest.LogServiceUnitTests.LogService_GetLogItem_IsAliveTest
[ERPServicesTest.LogServiceUnitTests.LogService_GetLogItem_IsAliveTest] [Test Output] Endpoint = ../ERPServices/LogService.svc
[MSTest] Test 'ERPServicesTest.ManufacturingServicesIntegrationTests.ManufacturingService_AddWorkOrderNote_Neg_IntTest': Failed to read testDuration
[MSTest] Test 'ERPServicesTest.ManufacturingServicesIntegrationTests.ManufacturingService_AddWorkOrderNote_Pos_IntTest': Failed to read testDuration
[MSTest] 9 test(s) were reported
Build succeeded.