From fcf13eabe519d85c01bf46946ab730a484a760b2 Mon Sep 17 00:00:00 2001 From: Christopher Hirt Date: Fri, 14 Jun 2024 15:19:57 +0700 Subject: [PATCH] ignore 2 tests on CI These tests are not intended to run on CI --- .github/workflows/build-test-installer-release.yml | 2 +- src/SolidGui.Tests/Export/ExportLiftTests.cs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-test-installer-release.yml b/.github/workflows/build-test-installer-release.yml index 1fa3312..09d96bd 100644 --- a/.github/workflows/build-test-installer-release.yml +++ b/.github/workflows/build-test-installer-release.yml @@ -32,7 +32,7 @@ jobs: run: dotnet build src/solid.sln --no-restore - name: Run NUnit Tests - run: dotnet test output/net461/*Tests.dll --no-build -- NUnit.TestOutputXml=TestResults + run: dotnet test output/net461/*Tests.dll --no-build -- NUnit.TestOutputXml=TestResults --filter TestCategory!="SkipOnCI" # clear output directory # build for release ? diff --git a/src/SolidGui.Tests/Export/ExportLiftTests.cs b/src/SolidGui.Tests/Export/ExportLiftTests.cs index 5d276e7..5c7776c 100644 --- a/src/SolidGui.Tests/Export/ExportLiftTests.cs +++ b/src/SolidGui.Tests/Export/ExportLiftTests.cs @@ -432,9 +432,13 @@ public void SemanticDomain_WithTwoDomains_ExportsTwoTraitUnderSense() /// /// this test is half-baked... if there's no english ldml on the machine, it won't work (e.g. on teamcity) /// - [Test, Category("SkipOnTeamCity")] + [Test, Category("SkipOnCI")] public void WritingSystems_WSFolderNotThere_CreatesItAndCopiesWritingSystemsToWritingSystemFolder() { + if (Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true") + { + Assert.Ignore("Test skipped on CI server."); + } using (var e = new ExportTestScenario()) { e.Input = @"\lx TestLexeme"; @@ -456,7 +460,7 @@ public void WritingSystems_WSFolderNotThere_CreatesItAndCopiesWritingSystemsToWr /// /// this test is half-baked... if there's no english ldml on the machine, it won't work (e.g. on teamcity) /// - [Test, Category("SkipOnTeamCity")] + [Test, Category("SkipOnCI")] public void WritingSystems_WSFolderAlreadyExists_CopiesWritingSystemsToWritingSystemFolder() { using (var e = new ExportTestScenario())