Skip to content

Commit 37565af

Browse files
committed
[dotnet] Simplify definition of building test web server for unit tests
1 parent a663d28 commit 37565af

File tree

3 files changed

+2
-25
lines changed

3 files changed

+2
-25
lines changed

dotnet/test/common/WebDriver.Common.Tests.csproj

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,6 @@
66
<RootNamespace>OpenQA.Selenium</RootNamespace>
77
</PropertyGroup>
88

9-
<ItemGroup>
10-
<Compile Remove="obj\**" />
11-
<EmbeddedResource Remove="obj\**" />
12-
<None Remove="obj\**" />
13-
</ItemGroup>
14-
15-
<ItemGroup>
16-
<Compile Remove="Properties\AssemblyInfo.cs" />
17-
</ItemGroup>
18-
199
<ItemGroup>
2010
<None Remove="Settings.StyleCop" />
2111
</ItemGroup>
@@ -37,22 +27,14 @@
3727
<ProjectReference Include="..\..\src\webdriver\WebDriver.csproj" />
3828
</ItemGroup>
3929

40-
<ItemGroup>
41-
<Folder Include="Properties\" />
42-
</ItemGroup>
43-
4430
<ItemGroup>
4531
<None Update="appconfig.json">
4632
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
4733
</None>
4834
</ItemGroup>
4935

50-
<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="'$(OS)' == 'Windows_NT'">
51-
<Exec Command="call &quot;$(ProjectDir)WebDriver.Common.Tests.csproj.prebuild.cmd&quot; &quot;$(ProjectDir)&quot;" />
52-
</Target>
53-
54-
<Target Name="PreBuildNonWindows" BeforeTargets="PreBuildEvent" Condition="'$(OS)' != 'Windows_NT'">
55-
<Exec Command="$(ProjectDir)WebDriver.Common.Tests.csproj.prebuild.sh $(ProjectDir)" />
36+
<Target Name="BuildTestWebServer" AfterTargets="AfterBuild">
37+
<Exec Command="bazel build //java/test/org/openqa/selenium/environment:appserver_deploy.jar" />
5638
</Target>
5739

5840
<!-- It is automatically imported when Selenium.WebDriver consumed via nuget package -->

dotnet/test/common/WebDriver.Common.Tests.csproj.prebuild.cmd

Lines changed: 0 additions & 2 deletions
This file was deleted.

dotnet/test/common/WebDriver.Common.Tests.csproj.prebuild.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)