File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
test/Atata.Cli.HtmlValidate.IntegrationTests Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 4444 command : build
4545 projects : ' **/*.sln'
4646 arguments : -c $(buildConfiguration) -p:RunCodeAnalysis=false
47- - script : sudo npm install -g html-validate
48- displayName : Install html-validate NPM package
4947 - task : DotNetCoreCLI@2
5048 displayName : Run tests
5149 timeoutInMinutes : 30
Original file line number Diff line number Diff line change 1- using Atata . Cli . Npm ;
1+ using System . Runtime . InteropServices ;
2+ using Atata . Cli . Npm ;
23using NUnit . Framework ;
34
45namespace Atata . Cli . HtmlValidate . IntegrationTests
@@ -7,10 +8,12 @@ namespace Atata.Cli.HtmlValidate.IntegrationTests
78 public class SetUpFixture
89 {
910 [ OneTimeSetUp ]
10- public void GlobalSetUp ( )
11- {
11+ public void GlobalSetUp ( ) =>
1212 new NpmCli ( )
13+ . WithCliCommandFactory ( OSDependentShellCliCommandFactory
14+ . UseCmdForWindows ( )
15+ . UseForOS ( OSPlatform . OSX , new ShShellCliCommandFactory ( ) )
16+ . UseForOtherOS ( new SudoShellCliCommandFactory ( ) ) )
1317 . InstallIfMissing ( HtmlValidateCli . Name , global : true ) ;
14- }
1518 }
1619}
You can’t perform that action at this time.
0 commit comments