From 198bc737666d6fcd94dbb55bb3d1f3f1e4acbca0 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 3 May 2024 19:29:52 +0300 Subject: [PATCH] Fail build on missing test results --- azure-pipelines.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3755c8fc3..933b98075 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -476,6 +476,7 @@ stages: testResultsFiles: '**/TestResult.xml' testRunTitle: '$(testName) Unit Tests' failTaskOnFailedTests: true + failTaskOnMissingResultsFile: true - job: Unit_Docker displayName: Unit Docker @@ -532,6 +533,7 @@ stages: testResultsFiles: '**/TestResult.xml' testRunTitle: '$(testName) Unit Tests' failTaskOnFailedTests: true + failTaskOnMissingResultsFile: true - job: Unit_LinuxCore_Postgres14 displayName: Unit Native LinuxCore with Postgres14 Database @@ -585,6 +587,7 @@ stages: testResultsFiles: '**/TestResult.xml' testRunTitle: 'LinuxCore Postgres14 Unit Tests' failTaskOnFailedTests: true + failTaskOnMissingResultsFile: true - job: Unit_LinuxCore_Postgres15 displayName: Unit Native LinuxCore with Postgres15 Database @@ -638,6 +641,7 @@ stages: testResultsFiles: '**/TestResult.xml' testRunTitle: 'LinuxCore Postgres15 Unit Tests' failTaskOnFailedTests: true + failTaskOnMissingResultsFile: true - stage: Integration displayName: Integration @@ -720,6 +724,7 @@ stages: testResultsFiles: '**/TestResult.xml' testRunTitle: '$(testName) Integration Tests' failTaskOnFailedTests: true + failTaskOnMissingResultsFile: true displayName: Publish Test Results - job: Integration_LinuxCore_Postgres14 @@ -782,6 +787,7 @@ stages: testResultsFiles: '**/TestResult.xml' testRunTitle: 'Integration LinuxCore Postgres14 Database Integration Tests' failTaskOnFailedTests: true + failTaskOnMissingResultsFile: true displayName: Publish Test Results @@ -845,6 +851,7 @@ stages: testResultsFiles: '**/TestResult.xml' testRunTitle: 'Integration LinuxCore Postgres15 Database Integration Tests' failTaskOnFailedTests: true + failTaskOnMissingResultsFile: true displayName: Publish Test Results - job: Integration_FreeBSD @@ -891,6 +898,7 @@ stages: testResultsFiles: '**/TestResult.xml' testRunTitle: 'FreeBSD Integration Tests' failTaskOnFailedTests: true + failTaskOnMissingResultsFile: true displayName: Publish Test Results - job: Integration_Docker @@ -960,6 +968,7 @@ stages: testResultsFiles: '**/TestResult.xml' testRunTitle: '$(testName) Integration Tests' failTaskOnFailedTests: true + failTaskOnMissingResultsFile: true displayName: Publish Test Results - stage: Automation