Skip to content

Commit

Permalink
[dotnet] Simplify definition of building test web server for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Apr 2, 2024
1 parent a663d28 commit 37565af
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
22 changes: 2 additions & 20 deletions dotnet/test/common/WebDriver.Common.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
<RootNamespace>OpenQA.Selenium</RootNamespace>
</PropertyGroup>

<ItemGroup>
<Compile Remove="obj\**" />
<EmbeddedResource Remove="obj\**" />
<None Remove="obj\**" />
</ItemGroup>

<ItemGroup>
<Compile Remove="Properties\AssemblyInfo.cs" />
</ItemGroup>

<ItemGroup>
<None Remove="Settings.StyleCop" />
</ItemGroup>
Expand All @@ -37,22 +27,14 @@
<ProjectReference Include="..\..\src\webdriver\WebDriver.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>

<ItemGroup>
<None Update="appconfig.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="'$(OS)' == 'Windows_NT'">
<Exec Command="call &quot;$(ProjectDir)WebDriver.Common.Tests.csproj.prebuild.cmd&quot; &quot;$(ProjectDir)&quot;" />
</Target>

<Target Name="PreBuildNonWindows" BeforeTargets="PreBuildEvent" Condition="'$(OS)' != 'Windows_NT'">
<Exec Command="$(ProjectDir)WebDriver.Common.Tests.csproj.prebuild.sh $(ProjectDir)" />
<Target Name="BuildTestWebServer" AfterTargets="AfterBuild">
<Exec Command="bazel build //java/test/org/openqa/selenium/environment:appserver_deploy.jar" />
</Target>

<!-- It is automatically imported when Selenium.WebDriver consumed via nuget package -->
Expand Down
2 changes: 0 additions & 2 deletions dotnet/test/common/WebDriver.Common.Tests.csproj.prebuild.cmd

This file was deleted.

3 changes: 0 additions & 3 deletions dotnet/test/common/WebDriver.Common.Tests.csproj.prebuild.sh

This file was deleted.

0 comments on commit 37565af

Please sign in to comment.