Skip to content

Commit

Permalink
Reinstated test skipping for build server
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmyers committed Jul 12, 2024
1 parent d33293a commit 430ccd7
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
run: dotnet build
- name: Test
# space after -- before RunConfig is required
run: dotnet test --no-build -maxcpucount:1 --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" -- RunConfiguration.CollectSourceInformation=true
run: dotnet test --filter "TestCategory != SkipOnCI" --no-build -maxcpucount:1 --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" -- RunConfiguration.CollectSourceInformation=true
2 changes: 1 addition & 1 deletion build/WeSay.proj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<SolutionPath>$(RootDir)/$(Solution)</SolutionPath>
<Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
<LinuxExcludeCategories Condition="'$(OS)'!='Windows_NT'">KnownMonoIssue,</LinuxExcludeCategories>
<ExtraExcludeCategories Condition="'$(teamcity_version)' != '' Or '$(JENKINS_URL)' != '' Or '$(CI)' != ''">SkipOnTeamCity,$(LinuxExcludeCategories)</ExtraExcludeCategories>
<ExtraExcludeCategories Condition="'$(teamcity_version)' != '' Or '$(JENKINS_URL)' != '' Or '$(CI)' != ''">SkipOnCI,$(LinuxExcludeCategories)</ExtraExcludeCategories>
<useNUnit-x86 Condition="'$(OS)'=='Windows_NT'">true</useNUnit-x86>
<Platform Condition="'$(Platform)'==''">x</Platform>
<useNUnit-x86 Condition="'$(OS)'!='Windows_NT'">false</useNUnit-x86>
Expand Down
2 changes: 1 addition & 1 deletion build/build.common.proj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PropertyGroup>
<useNUnit-x86 Condition="'$(OS)'=='Windows_NT'">true</useNUnit-x86>
<useNUnit-x86 Condition="'$(OS)'!='Windows_NT'">false</useNUnit-x86>
<ExtraExcludeCategories Condition="'$(teamcity_version)' != ''">SkipOnTeamCity,$(ExtraExcludeCategories)</ExtraExcludeCategories>
<ExtraExcludeCategories Condition="'$(teamcity_version)' != ''">SkipOnCI,$(ExtraExcludeCategories)</ExtraExcludeCategories>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion build/build.mono.proj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
Targets="Build"
Properties="Configuration=$(Configuration);Constants=$(Constants)" />
<Exec Condition="'$(action)' == 'test'"
Command="$(MONO_PREFIX)/bin/mono --debug $(MONO_PREFIX)/lib/mono/4.0/nunit-console.exe -noshadow -exclude=SkipOnTeamCity [!P]*.Tests.dll -xml=WeSay.nunit-output.xml"
Command="$(MONO_PREFIX)/bin/mono --debug $(MONO_PREFIX)/lib/mono/4.0/nunit-console.exe -noshadow -exclude=SkipOnCI [!P]*.Tests.dll -xml=WeSay.nunit-output.xml"
WorkingDirectory="$(RootDir)/output/$(Configuration)"
Timeout="4500000"/>
</Target>
Expand Down
4 changes: 2 additions & 2 deletions src/Addin.Transform.Tests/LibreOfficePdfTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private static void CopyFolder(string sourceFolder, string destFolder)
}

[Test]
[Category("SkipOnTeamCity")]
[Category("SkipOnCI")]
[Platform(Exclude = "Win", Reason = "Mono only test")]
public void TestOpenDocumentPdf()
{
Expand All @@ -132,7 +132,7 @@ public void TestOpenDocumentPdf()
}

[Test]
[Category("SkipOnTeamCity")]
[Category("SkipOnCI")]
[Platform(Exclude = "Win", Reason = "Mono only test")]
public void TestOpenDocumentPdfOpen()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Addin.Transform.Tests/PdfMakerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ public void TearDown()
}

[Test]
[Category("SkipOnTeamCity")]
[Category("SkipOnCI")]
public void CreatePDF()
{
LaunchAddin();
}

[Test]
[Category("SkipOnTeamCity")]
[Category("SkipOnCI")]
public void CreatePdfAndOpen()
{
LaunchAddin();
Expand Down
2 changes: 1 addition & 1 deletion src/Addin.Transform.Tests/SfmTransformerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Addin.Transform.Tests
{
[Category("SkipOnTeamCity")] // Uses ProgressDialog during transforms.
[Category("SkipOnCI")] // Uses ProgressDialog during transforms.
[TestFixture]
public class SfmTransformerTests
{
Expand Down
4 changes: 2 additions & 2 deletions src/WeSay.ConfigTool.Tests/AdminWindowTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace WeSay.ConfigTool.Tests
{
[Category("SkipOnTeamCity")]
[Category("SkipOnCI")]
[TestFixture, Apartment(ApartmentState.STA)]
public class AdminWindowTests
{
Expand Down Expand Up @@ -136,7 +136,7 @@ public void CreateAndOpenProject_EnglishAsVernacular_DoesNotCrash()
}

/* these are more modern, without use of static, "pretend" project, or the big setup/teardown of the old style */
[Category("SkipOnTeamCity")]
[Category("SkipOnCI")]
[TestFixture]
public class MoreAdminWindowTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/WeSay.UI.Tests/AutoCompleteWithCreationBoxTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace WeSay.UI.Tests
{
[Category("SkipOnTeamCity")]
[Category("SkipOnCI")]
[TestFixture]
public class AutoCompleteWithCreationBoxTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/WeSay.UI.Tests/DetailListTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace WeSay.UI.Tests
{
[Category("SkipOnTeamCity")]
[Category("SkipOnCI")]
[TestFixture, Apartment(ApartmentState.STA)]
public class DetailListTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/WeSay.UI.Tests/GeckoListBoxTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void TestDrawItem()
}

[Test]
[Category("SkipOnTeamCity")]
[Category("SkipOnCI")]
[Ignore("FLAKY - sometimes fails in run all in VS.")]
public void TestGetRectangle()
{
Expand Down
2 changes: 1 addition & 1 deletion src/WeSay.UI.Tests/ReferenceCollectionEditorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace WeSay.UI.Tests
{
[Category("SkipOnTeamCity")]
[Category("SkipOnCI")]
[TestFixture]
public class ReferenceCollectionEditorTests : IReceivePropertyChangeNotifications
{
Expand Down

0 comments on commit 430ccd7

Please sign in to comment.