File tree Expand file tree Collapse file tree
CSharpInteractive.Tests/UsageScenarios Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55namespace CSharpInteractive . Tests . UsageScenarios ;
66
77using System . Diagnostics . CodeAnalysis ;
8+ using System . Runtime . InteropServices ;
89
910[ CollectionDefinition ( "Integration" , DisableParallelization = true ) ]
1011[ Trait ( "Integration" , "True" ) ]
@@ -14,6 +15,14 @@ public class DotNetDevCertsHttpsScenario(ITestOutputHelper output) : BaseScenari
1415 [ Fact ]
1516 public void Run ( )
1617 {
18+ // `dotnet dev-certs https --trust` reliably works only on Windows.
19+ // On Linux it requires libnss3-tools + a user NSS DB and often exits non-zero;
20+ // on macOS it requires interactive sudo. Skip on non-Windows CI.
21+ if ( ! RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
22+ {
23+ return ;
24+ }
25+
1726 // $visible=true
1827 // $tag=07 .NET CLI
1928 // $priority=01
You can’t perform that action at this time.
0 commit comments