Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

Commit 8a2525f

Browse files
authored
Merge pull request #998 from sawilde/feature/bdd_update
Feature/bdd update
2 parents e77b4fd + 41b3feb commit 8a2525f

File tree

14 files changed

+734
-329
lines changed

14 files changed

+734
-329
lines changed

.github/workflows/codeql-analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ jobs:
5050
# ℹ️ Command-line programs to run using the OS shell.
5151
# 📚 https://git.io/JvXDl
5252

53-
- name: Setup .NET Core 3.1.404
53+
- name: Setup .NET Core 5.0.101
5454
uses: actions/setup-dotnet@v1
5555
with:
56-
dotnet-version: '3.1.404'
56+
dotnet-version: '5.0.101'
5757

5858
- name: Build OpenCover x64
5959
run: |

build/opencover.build

+7-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,13 @@
150150
</exec>
151151

152152
</target>
153-
153+
154+
<target name="test-bdd-release" >
155+
<property name="configuration" value="release" />
156+
<property name="platform" value="x64" />
157+
<call target="test-bdd" />
158+
</target>
159+
154160
<target name="test-cpp" depends="test-cpp-internal" />
155161

156162
<target name="test-cpp-internal" description="Run C++ tests" >
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net5.0</TargetFramework>
6+
<RootNamespace>OpenCover.Simple.Target.Core._5._0.Embedded</RootNamespace>
7+
</PropertyGroup>
8+
9+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
10+
<DebugType>embedded</DebugType>
11+
<DebugSymbols>true</DebugSymbols>
12+
</PropertyGroup>
13+
14+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
15+
<DebugType>embedded</DebugType>
16+
<DebugSymbols>true</DebugSymbols>
17+
</PropertyGroup>
18+
19+
<ItemGroup>
20+
<Compile Include="..\OpenCover.Simple.Target.Core\Program.cs" Link="Program.cs" />
21+
</ItemGroup>
22+
23+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net5.0</TargetFramework>
6+
<RootNamespace>OpenCover.Simple.Target.Core._5._0.Portable</RootNamespace>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<Compile Include="..\OpenCover.Simple.Target.Core\Program.cs" Link="Program.cs" />
11+
</ItemGroup>
12+
13+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net5.0</TargetFramework>
6+
<RootNamespace>OpenCover.Simple.Target.Core._5._0</RootNamespace>
7+
</PropertyGroup>
8+
9+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
10+
<DebugType>full</DebugType>
11+
<DebugSymbols>true</DebugSymbols>
12+
</PropertyGroup>
13+
14+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
15+
<DebugType>full</DebugType>
16+
<DebugSymbols>true</DebugSymbols>
17+
</PropertyGroup>
18+
19+
<ItemGroup>
20+
<Compile Include="..\OpenCover.Simple.Target.Core\Program.cs" Link="Program.cs" />
21+
</ItemGroup>
22+
23+
</Project>

main/OpenCover.Simple.Target.Core/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static void Main(string[] args)
2323
// The factorial function itself
2424
var factorial = Fix(F);
2525

26-
for (int j = 0; j < 1000; j++)
26+
for (int j = 0; j < 100; j++)
2727
{
2828
for (var i = 0; i < 12; i++)
2929
{

main/OpenCover.Specs/DotNetCore.feature

+35
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,38 @@ Scenario: Get coverage of a .net core 3.1 application using oldstyle, with debug
3838
When I execute OpenCover against the target application using the switch '-oldstyle'
3939
Then I should have a results.xml file with a coverage greater than or equal to '100'%
4040

41+
Scenario: Get coverage of a .net core 5.0 application
42+
Given I can find the OpenCover application
43+
And I can find the target .net core '5.0' application 'OpenCover.Simple.Target.Core.5.0'
44+
When I execute OpenCover against the target application using the switch ''
45+
Then I should have a results.xml file with a coverage greater than or equal to '100'%
46+
47+
Scenario: Get coverage of a .net core 5.0 application using oldstyle
48+
Given I can find the OpenCover application
49+
And I can find the target .net core '5.0' application 'OpenCover.Simple.Target.Core.5.0'
50+
When I execute OpenCover against the target application using the switch '-oldstyle'
51+
Then I should have a results.xml file with a coverage greater than or equal to '100'%
52+
53+
Scenario: Get coverage of a .net core 5.0 application, with debugType = portable
54+
Given I can find the OpenCover application
55+
And I can find the target .net core '5.0' application 'OpenCover.Simple.Target.Core.5.0.Portable'
56+
When I execute OpenCover against the target application using the switch ''
57+
Then I should have a results.xml file with a coverage greater than or equal to '100'%
58+
59+
Scenario: Get coverage of a .net core 5.0 application using oldstyle, with debugType = portable
60+
Given I can find the OpenCover application
61+
And I can find the target .net core '5.0' application 'OpenCover.Simple.Target.Core.5.0.Portable'
62+
When I execute OpenCover against the target application using the switch '-oldstyle'
63+
Then I should have a results.xml file with a coverage greater than or equal to '100'%
64+
65+
Scenario: Get coverage of a .net core 5.0 application, with debugType = embedded
66+
Given I can find the OpenCover application
67+
And I can find the target .net core '5.0' application 'OpenCover.Simple.Target.Core.5.0.Embedded'
68+
When I execute OpenCover against the target application using the switch ''
69+
Then I should have a results.xml file with a coverage greater than or equal to '100'%
70+
71+
Scenario: Get coverage of a .net core 5.0 application using oldstyle, with debugType = embedded
72+
Given I can find the OpenCover application
73+
And I can find the target .net core '5.0' application 'OpenCover.Simple.Target.Core.5.0.Embedded'
74+
When I execute OpenCover against the target application using the switch '-oldstyle'
75+
Then I should have a results.xml file with a coverage greater than or equal to '100'%

0 commit comments

Comments
 (0)