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

Commit 22fe087

Browse files
authored
Merge pull request #1020 from OpenCover/rc
push release
2 parents 32dcfac + e3beda2 commit 22fe087

File tree

117 files changed

+4787
-3621
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+4787
-3621
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: sawilde

.github/ISSUE_TEMPLATE/bug_report.md

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Please provide the following information when submitting an issue.
11+
> Where appropriate replace the `[]` with a `[X]`
12+
13+
**NOTE** Support requests should initially be raised on [GitHub discussions](https://github.com/OpenCover/opencover/discussions)
14+
15+
### My Framework
16+
17+
- [ ] .NET 2
18+
- [ ] .NET 3.5
19+
- [ ] .NET 4
20+
- [ ] .NET 4.5
21+
- [ ] .NET 4.6
22+
- [ ] .NET 4.6.1
23+
- [ ] .NET 4.6.2
24+
- [ ] .NET 4.7
25+
- [ ] .NET 4.7.1
26+
- [ ] .NET 4.7.2
27+
- [ ] .NET 4.8
28+
- [ ] .NET Core 2.2.0
29+
- [ ] .NET Core 3.1.0
30+
- [ ] .NET 5
31+
- only release and LTS versions of .NET runtimes and SDKs will be supported
32+
33+
### My Environment
34+
35+
- [ ] Windows 7 or below (not truly supported due to EOL)
36+
- [ ] Windows 8
37+
- [ ] Windows 8.1
38+
- [ ] Windows 10
39+
- [ ] Windows 10 IoT Core
40+
- [ ] Windows Server 2012
41+
- [ ] Windows Server 2012 R2
42+
- [ ] Windows Server 2016
43+
- [ ] Windows Server 2019
44+
45+
### I have already...
46+
47+
- [ ] repeated the problem using the latest stable release of OpenCover.
48+
- [ ] reviewed the [usage guide](https://github.com/opencover/opencover/wiki/usage) and [usage document](https://github.com/opencover/opencover/blob/master/main/OpenCover.Documentation/Usage.pdf).
49+
- [ ] have looked at the opencover output xml file in an attempt to resolve the issue.
50+
- [ ] reviewed the [current issues](https://github.com/opencover/opencover/issues) to check that the issue isn't already known.
51+
52+
### My issue is related to (check only those which apply):
53+
54+
- [ ] no coverage being recorded
55+
- [ ] 32 or 64 bit support
56+
57+
### Describe the bug
58+
A clear and concise description of what the bug is.
59+
60+
### Steps to reproduce the problem:
61+
62+
- [ ] reviewed the [usage guide](https://github.com/opencover/opencover/wiki/usage) and [usage document](https://github.com/opencover/opencover/blob/master/main/OpenCover.Documentation/Usage.pdf) again because we know you probably didn't do it the first time.
63+
- [ ] sample code or link to repository/gist is available (support is much, much faster this way)

.github/ISSUE_TEMPLATE/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: true
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/SUPPORT.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Support for OpenCover
2+
3+
Welcome to OpenCover! We use GitHub for tracking bugs and feature requests.
4+
- with also looking at using GitHub discussions for support issues.
5+
6+
### Stack Overflow
7+
8+
The OpenCover Community is active on Stack Overflow, you can post your questions there:
9+
10+
* [OpenCover on Stack Overflow](https://stackoverflow.com/questions/tagged/opencover)
11+
12+
* Here are some tips for [about how to ask good questions](https://stackoverflow.com/help/how-to-ask).
13+
* Don't forget to check to see [what's on topic](http://stackoverflow.com/help/on-topic).
14+
15+
* [OpenCover on GitHub)(https://github.com/OpenCover/opencover/discussions)
16+
17+
* Before raising a [support issue](https://github.com/OpenCover/opencover/issues) please start a discussion first if it becomes a defect/feature request then an appropriate ticket can be created.
18+
19+
### Documentation
20+
21+
* [Wiki](https://github.com/OpenCover/opencover/wiki/Usage) or [PDF](https://github.com/OpenCover/opencover/blob/master/main/OpenCover.Documentation/Usage.pdf)
22+

.github/contributing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OpenCover is open to all and we encourage the community to contribute in the pro
66

77
OpenCover isn't perfect and it will have issues we do our best to stay on top of them but we occasionaly take a break from development to do other things.
88

9-
If you are raising an issue please check that you are using the latest version from either our [releases](https://github.com/OpenCover/opencover/releases) or [nuget](https://www.nuget.org/packages/OpenCover/). If the issue persists then please try to supply as much detail as you can and ifpossible supply a sample that we can use to repeat the issue described.
9+
If you are raising an issue please check that you are using the latest version from either our [releases](https://github.com/OpenCover/opencover/releases) or [nuget](https://www.nuget.org/packages/OpenCover/). If the issue persists then please try to supply as much detail as you can and if possible supply a sample that we can use to repeat the issue described.
1010

1111
If you are requesting a feature, please supply why it is useful and what the benefits are. OpenCover was developed to meet a need to have a code coverage tool and so if we haven't yet implemented something we need to be sold on the idea.
1212

.github/issue_template.md

+1-56
Original file line numberDiff line numberDiff line change
@@ -1,56 +1 @@
1-
Please provide the following information when submitting an issue.
2-
3-
> Where appropriate replace the `[ ]` with a `[X]`
4-
5-
### My Framework
6-
7-
- [ ] .NET 2
8-
- [ ] .NET 3.5
9-
- [ ] .NET 4
10-
- [ ] .NET 4.5
11-
- [ ] .NET 4.6
12-
- [ ] .NET 4.6.1
13-
- [ ] .NET 4.6.2
14-
- [ ] .NET 4.7
15-
- [ ] .NET 4.7.1
16-
- [ ] .NET 4.7.2
17-
- [ ] .NET Core 1.0.0
18-
- [ ] .NET Core 2.0.0
19-
- [ ] Something else
20-
21-
### My Environment
22-
23-
- [ ] Windows 7 or below (not truly supported due to EOL)
24-
- [ ] Windows 8
25-
- [ ] Windows 8.1
26-
- [ ] Windows 10
27-
- [ ] Windows 10 IoT Core
28-
- [ ] Windows Server 2012
29-
- [ ] Windows Server 2012 R2
30-
- [ ] Windows Server 2016
31-
32-
### I have already...
33-
34-
- [ ] repeated the problem using the latest stable release of OpenCover.
35-
- [ ] reviewed the [usage guide](https://github.com/opencover/opencover/wiki/usage) and [usage document](https://github.com/opencover/opencover/blob/master/main/OpenCover.Documentation/Usage.pdf).
36-
- [ ] have looked at the opencover output xml file in an attempt to resolve the issue.
37-
- [ ] reviewed the [current issues](https://github.com/opencover/opencover/issues) to check that the issue isn't already known.
38-
39-
### My issue is related to (check only those which apply):
40-
41-
- [ ] no coverage being recorded
42-
- [ ] 32 or 64 bit support
43-
- [ ] feature request
44-
45-
### Expected Behavior
46-
47-
Fill me in...
48-
49-
### Actual Behavior
50-
51-
Fill me in...
52-
53-
### Steps to reproduce the problem:
54-
55-
- [ ] reviewed the [usage guide](https://github.com/opencover/opencover/wiki/usage) and [usage document](https://github.com/opencover/opencover/blob/master/main/OpenCover.Documentation/Usage.pdf) again because we know you probably didn't do it the first time.
56-
- [ ] sample code or link to repository/gist is available (support is much faster this way)
1+
**Support requests** should initially be raised on [GitHub discussions](https://github.com/OpenCover/opencover/discussions)

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ coverity.zip
9292
#chocolatey
9393
/main/bin/chocpackage/*.nupkg
9494
/samples/SampleSln.zip
95-
/main/OpenCover.Packages/chocolatey/opencover/tools/chocolateyInstall.ps1
96-
/main/OpenCover.Packages/chocolatey/opencover.portable/tools/chocolateyInstall.ps1
95+
/main/OpenCover.Packages/chocolatey/**/chocolateyInstall.ps1
9796

9897
#OpenCppCoverage
9998
/CoverageReport*/**/*

README.md

+22-15
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
OpenCover is a code coverage tool for .NET 2 and above (Windows OSs only - no MONO), with support for 32 and 64 processes and covers both branch and sequence points. OpenCover was started after attempts to make PartCover support 64-bit processes got just a [little too complicated](http://blog.many-monkeys.com/open_cover_first_beta_release/).
1+
OpenCover is a code coverage tool for .NET 2 and above (Windows OSs only - no MONO)<sup>*</sup>, with support for 32 and 64 processes and covers both branch and sequence points. OpenCover was started after attempts to make PartCover support 64-bit processes got just a [little too complicated](http://blog.many-monkeys.com/open_cover_first_beta_release/).
2+
3+
* OpenCover should have few issues with any application compiled against any of the .NET Full Frameworks. Applications targetting .Net Core may encounter issues but using the `-oldstyle` switch usually works.
24

35
The latest releases can be downloaded from [releases](https://github.com/opencover/opencover/releases). **Alternatively** why not try the [nuget](http://nuget.org/packages/opencover) package (this is the most popular).
46

57
| | Active Integrations |
68
| --- | --- |
79
| **Build** | [![Build status](https://img.shields.io/appveyor/ci/sawilde/opencover.svg)](https://ci.appveyor.com/project/sawilde/opencover) |
810
| **Coverage** | <sup>Coveralls</sup> [![Coveralls](https://img.shields.io/coveralls/OpenCover/opencover/master.svg)](https://coveralls.io/r/OpenCover/opencover) |
11+
| **Quality** | [![Coverity](https://scan.coverity.com/projects/3921/badge.svg)](https://scan.coverity.com/projects/opencover-opencover) |
912
| **Nuget** | [![Nuget](https://buildstats.info/nuget/opencover)](http://nuget.org/packages/opencover) [![Nuget](https://img.shields.io/nuget/vpre/opencover.svg)](http://nuget.org/packages/opencover) |
1013
| **Agreements** | [![CLA assistant](https://cla-assistant.io/readme/badge/OpenCover/opencover)](https://cla-assistant.io/OpenCover/opencover) |
1114

12-
| | Disabled Integrations |
13-
| --- | --- |
14-
| **Coverage** | <sup>SonarCloud</sup> [![SonarCloud](https://sonarcloud.io/api/project_badges/measure?project=opencover&metric=coverage)](https://sonarcloud.io/dashboard?id=opencover) |
15-
| **Quality** | [![SonarCloud](https://sonarcloud.io/api/project_badges/measure?project=opencover&metric=alert_status)](https://sonarcloud.io/dashboard?id=opencover) |
16-
| **Quality** | [![Coverity](https://scan.coverity.com/projects/3921/badge.svg)](https://scan.coverity.com/projects/opencover-opencover) |
17-
1815
### Master
1916
The primary repo for the project is [on GitHub](https://github.com/opencover/opencover/) and is also where the [wiki](https://github.com/OpenCover/opencover/wiki) and [issues](https://github.com/OpenCover/opencover/wiki) are managed from.
2017

21-
### Team slack (*new* Jan 2019)
22-
[![Slack](https://img.shields.io/badge/chat-%20slack%20-brightgreen.svg)](https://join.slack.com/t/opencover/shared_invite/enQtNTI4NDA5MDA4MDUzLTE1MTllZjdiYmVjZmZiMGVjNWNjZGM1OWNiY2QwODY1NDA5OGNiYTVkYWQxN2IwNzc5NTE0MGJiOTI5MzkzZDE)
18+
### Requirements
19+
20+
1) .NET 4.7.2 is needed to run opencover
2321

2422
### Submissions and Community Licence Agreement
2523
You will be asked to agree to a CLA as part of the submission process; first pull request only and it's all automatic no printing and signing etc. You can read the agreement here - [OpenCover CLA](https://gist.github.com/sawilde/4820db0a6151a1144a0c) and you can read our [Q&A](https://github.com/OpenCover/opencover/wiki/Contributor-License-Agreement-Q&A) on the wiki as to why.
@@ -37,8 +35,12 @@ All Original Software is licensed under the [MIT Licence](https://github.com/ope
3735

3836
If anyone is aware of any licence violations that this code may be making please inform the developers so that the issue can be investigated and rectified.
3937

38+
### Visual Studio Integration
39+
The following add-in for visual studio can be used to run and view coverage results within the IDE
40+
https://github.com/FortuneN/FineCodeCoverage
41+
4042
### Integration Test support
41-
OpenCover was initially created to support unit testing techniques such as TDD and tools like NUnit and MSTest. Over time others have found ways to use OpenCover for integration testing especially in tricky scenarios such as IIS and Windows Services. I'll put links here as to how people have achieved this however as they say YMMV (You Mileage May Vary).
43+
OpenCover was initially created to support unit testing techniques such as TDD and tools like NUnit and MSTest. Over time others have found ways to use OpenCover for integration testing especially in tricky scenarios such as IIS and Windows Services. I'll put links here as to how people have achieved this however as they say YMMV (Your Mileage May Vary).
4244

4345
#### Mono support
4446
It isn't, sorry - this tool uses the profiler API that is currently only available to .NET Frameworks running on the Windows platform.
@@ -61,11 +63,16 @@ Please refer to the wiki - [Silverlight support](https://github.com/OpenCover/op
6163
### Building
6264
You will need:
6365

64-
1. Visual Studio VS2017 (Community Edition) or later with C#, C++, .Net Core
65-
2. WiX 3.11 or later (http://wixtoolset.org/releases/) and Votive 2017 (https://marketplace.visualstudio.com/items?itemName=RobMensching.WixToolsetVisualStudio2017Extension)
66-
3. SpecFlow for Visual Studio 2017 (https://marketplace.visualstudio.com/items?itemName=TechTalkSpecFlowTeam.SpecFlowforVisualStudio2017)
67-
4. Windows SDK 10 and .NET Framework Tools (https://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx)
68-
5. Microsoft .NET Framework 4.7.2 Developer Pack (https://dotnet.microsoft.com/download/visual-studio-sdks)
66+
To build from the command line:
67+
1. Visual Studio VS2019 (Community Edition) with C#, C++, .Net Core
68+
2. .NET SDK 2.2.402 (https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-2.1.4-windows-x64-installer)
69+
- runtimes ???
70+
3. WiX 3.11 or later (http://wixtoolset.org/releases/) and Votive 2019 (https://marketplace.visualstudio.com/items?itemName=WixToolset.WixToolsetVisualStudio2019Extension)
71+
4. Windows SDK 10 (10.0.18362.0) and .NET Framework Tools (https://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx)
72+
73+
To build and run from within visual studio:
74+
5. SpecFlow for Visual Studio 2017 (https://marketplace.visualstudio.com/items?itemName=TechTalkSpecFlowTeam.SpecFlowForVisualStudio)
75+
6. Microsoft .NET Framework 4.7.2 Developer Pack (https://dotnet.microsoft.com/download/visual-studio-sdks)
6976

7077
All other software should be included with this repository.
7178

ReleaseNotes.tmp

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1+
Requires .NET Framework 4.7.2
2+
13
Version [[version]]
4+
#877 remove incorrect redirects (bug)
5+
#964 address CVE-2018-1285 in log4net 2.0.8 (prj-mgmt)
6+
#910 import MSBuild project from NuGet package (feature)
7+
#953 update Sentry to latest version (prj-mgmt)
8+
#908 fix race condition causing modules to appear twice in output (bug)
9+
#930 add .Net framework 4.7.2 detection to installer (prj-mgmt)
10+
#728 extend max configuable comm timeout to 600s (bug/feature)
11+
#914, #725 additional messaging around no coverage (prj-mgmt)
12+
#993 fix issue with FieldReference handling preventing assembly from loading (bug)
13+
#960 ignore empty branches created by unoptimised code (feature)
14+
#809 ignore fsharp auto properties
15+
16+
Version 4.7.922
217
#855 change crash reporting framework to Sentry (feature/prj-mgmt)
318
#735 apply checksums to chocolatey packages (feature/prj-mgmt)
419
#825 handle pdb mismatch and continue (fix)

appveyor.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 4.7.{build}
22
skip_tags: true
3-
image: Visual Studio 2017
3+
image: Visual Studio 2019
44
shallow_clone: true
55
environment:
66
COVERALLS_REPO_TOKEN:
@@ -68,6 +68,8 @@ artifacts:
6868
name: Chocolatey
6969
- path: main/bin/packages/chocolatey/opencover.portable/*.nupkg
7070
name: ChocolateyPortable
71+
- path: main/bin/packages/chocolatey/opencover.install/*.nupkg
72+
name: ChocolateyInstall
7173
- path: cov-int/build-log.txt
7274
name: Coverity
7375
- path: GenericCoverage.xml
@@ -77,11 +79,19 @@ artifacts:
7779
deploy:
7880
- provider: NuGet
7981
api_key:
80-
secure: rSx36T78ZXIqD2Tk/DatbUP05MiHgxTWjOIGquhzWeTJX0VEB4Mn2TZyi0zMtGIL
82+
secure: pIYB18F1Lfq/UWtYjWH1CaKuuLc2dLHxeRwH5xO3BZsv4pMce5ETtqglUWa96TWp
8183
skip_symbols: true
8284
artifact: Nuget
8385
on:
8486
branch: release
87+
- provider: NuGet
88+
server: https://chocolatey.org/
89+
api_key:
90+
secure: BbmHnhpI/e+m2xmR/5jxmOqKbQdcYG8RuF7iWT86SbCLIxPhMotbHprgBtw8dA4n
91+
skip_symbols: true
92+
artifact: ChocolateyInstall
93+
on:
94+
branch: release
8595
- provider: NuGet
8696
server: https://chocolatey.org/
8797
api_key:
@@ -100,7 +110,7 @@ deploy:
100110
branch: release
101111
- provider: NuGet
102112
api_key:
103-
secure: rSx36T78ZXIqD2Tk/DatbUP05MiHgxTWjOIGquhzWeTJX0VEB4Mn2TZyi0zMtGIL
113+
secure: pIYB18F1Lfq/UWtYjWH1CaKuuLc2dLHxeRwH5xO3BZsv4pMce5ETtqglUWa96TWp
104114
skip_symbols: true
105115
artifact: NugetCandidate
106116
on:
@@ -109,7 +119,7 @@ deploy:
109119
tag: $(appveyor_build_version)-rc
110120
release: OpenCover (Release Candidiate) $(appveyor_build_version)
111121
auth_token:
112-
secure: thjVnm0YNqFzuRd6kLGj0bKHlPfPbRNOj3clihjeQP4MnJItTRLMogx+pC5w43Nd
122+
secure: T8hG3PcjoJoYaCr7ND6wFfzJdje9TYqbvBl9pFmh3EmI6relJrXzAGAooe9lBYjt
113123
artifact: Installer, ZipArchive
114124
prerelease: true
115125
on:
@@ -118,7 +128,7 @@ deploy:
118128
tag: $(appveyor_build_version)
119129
release: OpenCover (Release) $(appveyor_build_version)
120130
auth_token:
121-
secure: thjVnm0YNqFzuRd6kLGj0bKHlPfPbRNOj3clihjeQP4MnJItTRLMogx+pC5w43Nd
131+
secure: T8hG3PcjoJoYaCr7ND6wFfzJdje9TYqbvBl9pFmh3EmI6relJrXzAGAooe9lBYjt
122132
artifact: Installer, ZipArchive
123133
on:
124134
branch: release
@@ -147,4 +157,4 @@ on_success:
147157
& .\build.bat dogfood-release
148158
}
149159
on_finish:
150-
- ps: #$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
160+
- ps: #$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

build/installer.build

+11
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
<include name="Gendarme.Rules.Maintainability.dll" />
1313
<include name="log4net.dll" />
1414
<include name="log4net.config" />
15+
<include name="Microsoft.Bcl.AsyncInterfaces.dll" />
1516
<include name="Microsoft.Extensions.Configuration.Abstractions.dll" />
17+
<include name="Microsoft.Extensions.Configuration.Binder.dll" />
1618
<include name="Microsoft.Extensions.Configuration.dll" />
1719
<include name="Microsoft.Extensions.Configuration.FileExtensions.dll" />
1820
<include name="Microsoft.Extensions.Configuration.Json.dll" />
@@ -35,7 +37,16 @@
3537
<include name="Sentry.dll" />
3638
<include name="Sentry.PlatformAbstractions.dll" />
3739
<include name="Sentry.Protocol.dll" />
40+
<include name="System.Buffers.dll" />
3841
<include name="System.Collections.Immutable.dll" />
42+
<include name="System.Diagnostics.DiagnosticSource.dll" />
43+
<include name="System.Memory.dll" />
44+
<include name="System.Numerics.Vectors.dll" />
45+
<include name="System.Runtime.CompilerServices.Unsafe.dll" />
46+
<include name="System.Text.Encodings.Web.dll" />
47+
<include name="System.Text.Json.dll" />
48+
<include name="System.Threading.Tasks.Extensions.dll" />
49+
<include name="System.ValueTuple.dll" />
3950
</fileset>
4051
<fileset basedir="${solution.folder}\bin\Release\x86" prefix="x86">
4152
<include name="OpenCover.Profiler.dll" />

0 commit comments

Comments
 (0)