File tree 4 files changed +10
-6
lines changed
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 12
12
inputs :
13
13
testRunner : VSTest
14
14
testResultsFiles : ' **/*.trx'
15
+ testRunTitle : Linux Unit Tests
15
16
16
17
- job : Windows
17
18
pool :
23
24
inputs :
24
25
testRunner : VSTest
25
26
testResultsFiles : ' **/*.trx'
27
+ testRunTitle : Windows Unit Tests
26
28
Original file line number Diff line number Diff line change @@ -40,15 +40,20 @@ module Tests =
40
40
let private dotnetTest ( target : Commandline.MultiTarget ) =
41
41
CreateDir Paths.BuildOutput
42
42
let command =
43
- let p = [ " test" ; " ." ]
43
+ let p = [ " test" ; " ." ; " -c " ; " RELEASE " ]
44
44
//make sure we only test netcoreapp on linux or requested on the command line to only test-one
45
45
match ( target, Environment.isLinux) with
46
46
| (_, true )
47
47
| ( Commandline.MultiTarget.One, _) -> [ " --framework" ; " netcoreapp2.1" ] |> List.append p
48
48
| _ -> p
49
49
let commandWithCodeCoverage =
50
+ // TODO /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
51
+ // Using coverlet.msbuild package
52
+ // https://github.com/tonerdo/coverlet/issues/110
53
+ // Bites us here as well a PR is up already but not merged will try again afterwards
54
+ // https://github.com/tonerdo/coverlet/pull/329
50
55
match ( buildingOnAzurePipeline) with
51
- | ( true ) -> [ " --logger" ; " trx" ; " --collect" ; " \" Code Coverage\" " ] |> List.append command
56
+ | ( true ) -> [ " --logger" ; " trx" ; " --collect" ; " \" Code Coverage\" " ; " -v " ; " m " ] |> List.append command
52
57
| _ -> command
53
58
54
59
let dotnet = Tooling.BuildTooling( " dotnet" )
Original file line number Diff line number Diff line change 5
5
# tracked by git).
6
6
7
7
# mode either u (unit test), i (integration test) or m (mixed mode)
8
- mode : i
8
+ mode : u
9
9
# the elasticsearch version that should be started
10
10
# Can be a snapshot version of sonatype or "latest" to get the latest snapshot of sonatype
11
11
elasticsearch_version : 6.5.3
Original file line number Diff line number Diff line change 8
8
<VersionSuffix >alpha</VersionSuffix >
9
9
<NoWarn >$(NoWarn);xUnit1013</NoWarn >
10
10
</PropertyGroup >
11
- <ItemGroup >
12
- <DotNetCliToolReference Include =" dotnet-xunit" Version =" 2.3.0-beta1-build3642" />
13
- </ItemGroup >
14
11
<ItemGroup >
15
12
<ProjectReference Include =" ..\Tests.Core\Tests.Core.csproj" />
16
13
<PackageReference Include =" Bogus" Version =" 22.1.2" />
You can’t perform that action at this time.
0 commit comments