Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions lib/PuppeteerSharp.Tests/Attributes/SkipWindowsFact.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System.Runtime.InteropServices;
using Xunit;

namespace PuppeteerSharp.Tests.Attributes
{
internal class SkipWindowsFact : FactAttribute
{
public SkipWindowsFact()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return;
}

Skip = "Test will not run on windows.";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public async Task ShouldDownloadAndExtractLinuxBinary()
}

[PuppeteerTest("launcher.spec.ts", "BrowserFetcher", "should download and extract firefox linux binary")]
[PuppeteerFact]
[SkipWindowsFact]
public async Task ShouldDownloadAndExtractFirefoxLinuxBinary()
{
using var browserFetcher = Puppeteer.CreateBrowserFetcher(new BrowserFetcherOptions
Expand Down