opencover


OpenCover - cannot find PDB


I am having some trouble getting OpenCover to work
I have the following folder structure
\Tools
\Tools\Nunit
\Tools\OpenCover
\Buildartifacts
When my code compiles, all the compiled code is generated into the BuildArtifacts folder. This includes the dll's and corresponding .pdb files
I am struggling to get OpenCover to run
From powershell I am entering the following command from the root folder:
.\tools\OpenCover\OpenCover.Console.exe -register:user
-target:.\tools\nunit\nunit-console.exe -targetargs:".\buildartifacts\MVCControllerTests.dll /noshadow" -filter:+[*]* -output:.\coverage.xml
However I keep getting the message:
Committing...
No results - no assemblies that matched the supplied filter were
instrumented
this could be due to missing PDBs for the assemblies that match the filter
please review the output file and refer to the Usage guide (Usage.rtf)
I have looked at OpenCover/NUnit can't find PDB files, and I have the /noshadow switch present in my targetargs
I attempted to move /noshadow to be the first in the targetargs, but then I get errors from nunit
I have also updated nunit-console.exe.config and added the following line to the startup node to ensure that all the tests are executed within .net4 instead of .net3.5
<supportedRuntime version="v4.0.30319">
But that made no difference.
When I viewed coverage.xml file, even though I had the noshadow flag, it still appears that nunit is doing a shadowcopy
eg, this was present:
C:\Users\darren\AppData\Local\Temp\nunit20\ShadowCopyCache\10344_634940293912865718\Tests_275832668\assembly\dl3\db34ecee\a0f236ee_a7f4cd01\TABusinessInterface.DLL
Appreciate any help.
The OpenCover WIKI notes that when using PowerShell you should wrap the whole argument in quotes i.e.
-targetargs:".\buildartifacts\MVCControllerTests.dll /noshadow"
becomes
"-targetargs:.\buildartifacts\MVCControllerTests.dll /noshadow"

Related Links

OpenCover & ReportGenerator : History files are empty
Exec command failing on some PCs in psake script to OpenCover
OpenCover how to exclude tests with certain Category
OpenCover coverage for NUnit test
Cyclomatic Complexity in openCover and Visual Studio
OpenCover filter not yielding any results
How OpenCoverage coverage works - are classes without any tests counted?
Coverage report using opencover
OpenCover - cannot find PDB

Categories

HOME
gitlab
atom-editor
cookies
smarty
include
onedrive
routes
networkx
azure-storage-tables
add
google-translate
numeral.js
qt-creator
timeout
lombok
uitypeeditor
facebook-page
pugjs
apache-metamodel
propel
alpine
nodatime
swiftlint
icloud-api
smb
semantic-analysis
brunch
typo3-6.2.x
subdomains
kendo-datasource
unboundid
copying
typed.js
android-nestedscrollview
devextreme
jquery-bootgrid
reportbuilder
lumberjack
user-controls
sas-visual-analytics
broadcastreceiver
galen
sql-server-agent
gulp-sourcemaps
g-code
android-mediaprojection
total-commander
flashair
dotcover
jedis
promela
epson
lync-client-sdk
django-scheduler
adxstudio-portals
underscore.js-templating
browser-link
unity3d-gui
iiviewdeckcontroller
dundas
dereference
skos
apache-commons-net
c++03
rdl
xojo
android-radiobutton
rebol3
system.net.webexception
pyhdf
runtime.exec
easy-install
venn-diagram
appconkit
xmemcached
remember-me
fluent-interface
sudzc
mozilla-prism
modelstate
routedevent
webkit.net
mtj
virtual-functions
simpletest
anti-piracy
project-hosting
thread-local-storage
zune
grid-system

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App