Skip to content

Commit cab319d

Browse files
Change tests setup
1 parent ccb0f8e commit cab319d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ jobs:
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
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Atata.Cli.Npm;
1+
using System.Runtime.InteropServices;
2+
using Atata.Cli.Npm;
23
using NUnit.Framework;
34

45
namespace 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
}

0 commit comments

Comments
 (0)