Je cours tous les unittest.dll en utilisant NUnitConsole3 test coureur et il génère xml Rapport TestResult après la construction réussie.Comment vais-je faire la construction échouer si l'un des tests unitaires échoue?Comment échouer Construire sur NUnitTest échouer en utilisant Powershell
Ci-dessous est le script pour exécuter les tests unitaires
$SourceDir = "C:\Users\M1036083\Source\Repos\TestSitecoreProject"
$OutDir = "C:\Builds\2\Demo\bin"
## ------------------------------------------------------------------------------
## Set Nunit Tool path
## ------------------------------------------------------------------------------
$nunit = "$SourceDir\NUnit.Console-3.6.1\nunit3-console.exe"
## ------------------------------------------------------------------------------
## Get all the Test dlls from the output directory
## ------------------------------------------------------------------------------
$tests = (Get-ChildItem $OutDir -Recurse -Include Demo.*Tests.dll)
## ------------------------------------------------------------------------------
## Run all the tests and generate report in XML format
## ------------------------------------------------------------------------------
& $nunit --inprocess $tests --noheader --work="$OutDir"