From e4e9a89a50782474aa4bc84235383e34dafc0a9b Mon Sep 17 00:00:00 2001 From: Yao Sun Date: Fri, 25 Feb 2022 22:54:04 -0800 Subject: [PATCH 1/3] Use correct dir --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e8623b5717..355c491cbd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -163,7 +163,7 @@ jobs: displayName: Publish Unit Test Results inputs: testResultsFormat: 'JUnit' - testResultsFiles: '$(Build.ArtifactStagingDirectory)\TEST-*.xml' + testResultsFiles: '$(artifactsDir)\TEST-*.xml' failTaskOnFailedTests: true - task: DownloadSecureFile@1 From 94b4ac2c7b81eb8bd3cb1cb28d4a57950291587b Mon Sep 17 00:00:00 2001 From: Yao Sun Date: Fri, 25 Feb 2022 22:54:54 -0800 Subject: [PATCH 2/3] make ut fail --- src/AppInstallerCLITests/Strings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppInstallerCLITests/Strings.cpp b/src/AppInstallerCLITests/Strings.cpp index 2e220b59f1..181af1c94e 100644 --- a/src/AppInstallerCLITests/Strings.cpp +++ b/src/AppInstallerCLITests/Strings.cpp @@ -86,7 +86,7 @@ TEST_CASE("Normalize", "[strings]") TEST_CASE("NormalizedString", "[strings]") { - REQUIRE(NormalizedString("test") == "test"); + REQUIRE(NormalizedString("test") == "no-test"); std::string input = "test"; REQUIRE(NormalizedString(input) == input); From 0e13ff25fc16f06b8e596939ed044d26fbd0acb8 Mon Sep 17 00:00:00 2001 From: Yao Sun Date: Fri, 25 Feb 2022 23:18:01 -0800 Subject: [PATCH 3/3] Revert "make ut fail" This reverts commit 94b4ac2c7b81eb8bd3cb1cb28d4a57950291587b. --- src/AppInstallerCLITests/Strings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppInstallerCLITests/Strings.cpp b/src/AppInstallerCLITests/Strings.cpp index 181af1c94e..2e220b59f1 100644 --- a/src/AppInstallerCLITests/Strings.cpp +++ b/src/AppInstallerCLITests/Strings.cpp @@ -86,7 +86,7 @@ TEST_CASE("Normalize", "[strings]") TEST_CASE("NormalizedString", "[strings]") { - REQUIRE(NormalizedString("test") == "no-test"); + REQUIRE(NormalizedString("test") == "test"); std::string input = "test"; REQUIRE(NormalizedString(input) == input);