mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-25 10:31:01 +01:00
Set up CI with Azure Pipelines (#203)
* Set up CI with Azure Pipelines * Microsoft.NET.Test.Sdk and coverlet.msbuild * vmImage: 'vs2017-win2016' * Remove coverlet.msbuild * . * s * eq * i * ne * , * echo * build always (test) * Install SonarScanner * script * cmd * dotnet tool install * SonarScanner via tools folder * echo * powershell * BUILD_BUILDID * $(SONAR_TOKEN) * fix * . * | * $(buildId) * $(buildId) * BuildId * appv * /d:sonar.cs.vscoveragexml.reportsPaths="**\*.coveragexml" * .coverage * coverlet * coverlet * b * coverlet local * Fix codefactor * Build Azure * Build Azure * remove FluentMockServer_Admin_StartStop * FluentMockServer_Admin_StartStop
This commit is contained in:
committed by
Stef Heyenrath
parent
84f3cc029f
commit
0c25ab413d
@@ -28,6 +28,16 @@ namespace WireMock.Net.Tests
|
||||
return current;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FluentMockServer_Admin_StartStop()
|
||||
{
|
||||
var server1 = FluentMockServer.Start("http://localhost:19091");
|
||||
|
||||
Check.That(server1.Urls[0]).Equals("http://localhost:19091");
|
||||
|
||||
server1.Stop();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FluentMockServer_Admin_ResetMappings()
|
||||
{
|
||||
@@ -45,22 +55,6 @@ namespace WireMock.Net.Tests
|
||||
Check.That(server.Mappings).HasSize(0);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FluentMockServer_Admin_StartStop()
|
||||
{
|
||||
var server1 = FluentMockServer.Start("http://localhost:19091");
|
||||
|
||||
Check.That(server1.Urls[0]).Equals("http://localhost:19091");
|
||||
|
||||
server1.Stop();
|
||||
|
||||
var server2 = FluentMockServer.Start("http://localhost:19091/");
|
||||
|
||||
Check.That(server2.Urls[0]).Equals("http://localhost:19091/");
|
||||
|
||||
server2.Stop();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FluentMockServer_Admin_SaveStaticMappings()
|
||||
{
|
||||
|
||||
@@ -8,14 +8,22 @@
|
||||
<PackageId>WireMock.Net.Tests</PackageId>
|
||||
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
||||
<ProjectGuid>{31DC2EF8-C3FE-467D-84BE-FB5D956E612E}</ProjectGuid>
|
||||
|
||||
<!-- https://github.com/tonerdo/coverlet/issues/6 -->
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\WireMock.Net.StandAlone\WireMock.Net.StandAlone.csproj" />
|
||||
<ProjectReference Include="..\..\src\WireMock.Net\WireMock.Net.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
|
||||
<PackageReference Include="coverlet.msbuild" Version="2.3.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
|
||||
<PackageReference Include="Moq" Version="4.8.3" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||
<PackageReference Include="NFluent" Version="2.2.0" />
|
||||
|
||||
Reference in New Issue
Block a user