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:
azure-pipelines[bot]
2018-09-13 12:22:09 +02:00
committed by Stef Heyenrath
parent 84f3cc029f
commit 0c25ab413d
165 changed files with 23220 additions and 52398 deletions

View File

@@ -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()
{

View File

@@ -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" />