Skip to content

Commit

Permalink
chore: remove non-exposed test-retries implementation (#2928)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed May 1, 2024
1 parent 3edc14f commit 5d489a9
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 665 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
if: matrix.os != 'ubuntu-latest'
env:
BROWSER: ${{ matrix.browser }}
run: dotnet test ./src/Playwright.Tests/Playwright.Tests.csproj -c Debug -f net8.0 --logger:"console;verbosity=detailed" -- Playwright.Retries=1
run: dotnet test ./src/Playwright.Tests/Playwright.Tests.csproj -c Debug -f net8.0 --logger:"console;verbosity=detailed"
- name: Running tests (Linux)
if: matrix.os == 'ubuntu-latest'
env:
BROWSER: ${{ matrix.browser }}
run: xvfb-run dotnet test ./src/Playwright.Tests/Playwright.Tests.csproj -c Debug -f net8.0 --logger:"console;verbosity=detailed" -- Playwright.Retries=1
run: xvfb-run dotnet test ./src/Playwright.Tests/Playwright.Tests.csproj -c Debug -f net8.0 --logger:"console;verbosity=detailed"
6 changes: 0 additions & 6 deletions src/Playwright.MSTest/PlaywrightTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@ public async Task Setup()
Playwright.Selectors.SetTestIdAttribute("data-testid");
}

[ClassInitialize(InheritanceBehavior.BeforeEachDerivedClass)]
public static void ClassInitialize(TestContext context)
{
PlaywrightTestMethodAttribute.TestContext = context;
}

[TestCleanup]
public async Task Teardown()
{
Expand Down
119 changes: 0 additions & 119 deletions src/Playwright.MSTest/PlaywrightTestMethodAttribute.cs

This file was deleted.

150 changes: 0 additions & 150 deletions src/Playwright.NUnit/PlaywrightTestAttribute.cs

This file was deleted.

5 changes: 0 additions & 5 deletions src/Playwright.TestAdapter/PlaywrightSettingsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ public static float? ExpectTimeout
}
}

public static int Retries
{
get => _settings?.Retries ?? 0;
}

public static BrowserTypeLaunchOptions LaunchOptions
{
get
Expand Down
Loading

0 comments on commit 5d489a9

Please sign in to comment.