From cf9a578815172af2c4f219616d9d2d692b681ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Wed, 7 May 2025 23:58:11 +0200 Subject: [PATCH] Misc tests improvement --- .github/workflows/ci.yml | 2 +- ArchiSteamFarm.Tests/IGitHubPluginUpdates.cs | 2 +- cc.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 548a41593..ef8a29904 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,4 +38,4 @@ jobs: run: dotnet build -c "${{ matrix.configuration }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo - name: Run ${{ matrix.configuration }} ArchiSteamFarm.Tests - run: dotnet test ArchiSteamFarm.Tests -c "${{ matrix.configuration }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo + run: dotnet test ArchiSteamFarm.Tests -c "${{ matrix.configuration }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --filter TestCategory!=Manual --nologo diff --git a/ArchiSteamFarm.Tests/IGitHubPluginUpdates.cs b/ArchiSteamFarm.Tests/IGitHubPluginUpdates.cs index 1ae52778f..a1e6d7fdd 100644 --- a/ArchiSteamFarm.Tests/IGitHubPluginUpdates.cs +++ b/ArchiSteamFarm.Tests/IGitHubPluginUpdates.cs @@ -40,7 +40,7 @@ internal sealed class IGitHubPluginUpdates { private const string PluginName = "ArchiSteamFarm.OfficialPlugins.Monitoring"; private const string Repository = "JustArchiNET/ArchiSteamFarm"; - [Ignore("For manual testing only, since it calls remote resources")] + [TestCategory("Manual")] [TestMethod] internal async Task DoesNotOfferPointlessUpdatesWhenMultipleAssetsAreFound() { using WebBrowser webBrowser = new(new ArchiLogger("Test")); diff --git a/cc.sh b/cc.sh index 44182dce7..631634fb4 100755 --- a/cc.sh +++ b/cc.sh @@ -127,7 +127,7 @@ if [ "$CLEAN" -eq 1 ]; then fi if [ "$TEST" -eq 1 ]; then - dotnet test "$TESTS_PROJECT" $DOTNET_FLAGS + dotnet test "$TESTS_PROJECT" --filter TestCategory!=Manual $DOTNET_FLAGS fi echo "INFO: Building ${MAIN_PROJECT}..."