Comments (4)
Additional info: we are running VS for Mac Community V8.5.4 (build 12)
=== Visual Studio Community 2019 for Mac ===
Version 8.5.4 (build 12)
Installation UUID: bfa9c0e4-781d-4e39-9176-9e881a76d651
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.14.1.39 (d16-5 / 30e8706b4)
Package version: 608000123
=== Mono Framework MDK ===
Runtime:
Mono 6.8.0.123 (2019-10/1d0d939dc30) (64-bit)
Package version: 608000123
=== Roslyn (Language Service) ===
3.5.0-beta4-20125-04+1baa0b3063238ed752ad1f0368b1df6b6901373e
=== NuGet ===
Version: 5.4.0.6315
=== .NET Core SDK ===
SDK: /usr/local/share/dotnet/sdk/3.1.200/Sdks
SDK Versions:
3.1.200
3.1.102
3.0.100
2.1.505
2.1.302
2.1.4
2.0.0
1.0.3
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.8.0/lib/mono/msbuild/Current/bin/Sdks
=== .NET Core Runtime ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.1.2
3.0.0
2.1.16
2.1.15
2.1.13
2.1.9
2.1.2
2.0.5
2.0.0
1.1.1
1.0.4
=== Xamarin.Profiler ===
Version: 1.6.12.26
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 11.4.1 (16137)
Build 11E503a
=== Xamarin.Mac ===
Version: 6.16.0.13 (Visual Studio Community)
Hash: b75deaf82
Branch: d16-5-xcode11.4
Build date: 2020-04-01 21:33:18-0400
=== Xamarin.iOS ===
Version: 13.16.0.13 (Visual Studio Community)
Hash: b75deaf82
Branch: d16-5-xcode11.4
Build date: 2020-04-01 21:33:19-0400
=== Xamarin Designer ===
Version: 16.5.0.471
Hash: 35aa4889d
Branch: remotes/origin/d16-5
Build date: 2020-02-25 00:52:08 UTC
=== Xamarin.Android ===
Version: 10.2.0.100 (Visual Studio Community)
Commit: xamarin-android/d16-5/988c811
Android SDK: /Users/devteam/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 28.0.2
SDK Build Tools Version: 28.0.3
Build Information:
Mono: c0c5c78
Java.Interop: xamarin/java.interop@fc18c54
ProGuard: xamarin/proguard@905836d
SQLite: xamarin/sqlite@46204c4
Xamarin.Android Tools: xamarin/xamarin-android-tools@9f4ed4b
=== Microsoft Mobile OpenJDK ===
Java SDK: /Users/devteam/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android SDK Manager ===
Version: 16.5.0.39
Hash: 6fb4c79
Branch: remotes/origin/d16-5
Build date: 2020-04-15 20:49:08 UTC
=== Android Device Manager ===
Version: 16.5.0.71
Hash: 49194e8
Branch: remotes/origin/d16-5~1
Build date: 2020-04-15 20:49:28 UTC
=== Xamarin Inspector ===
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1
=== Build Information ===
Release ID: 805040012
Git revision: 7642369422103e19b0b8d29ddc211abf2fd32607
Build date: 2020-04-16 08:55:15-04
Build branch: release-8.5
Xamarin extensions: 7642369422103e19b0b8d29ddc211abf2fd32607
=== Operating System ===
Mac OS X 10.15.4
Darwin 19.4.0 Darwin Kernel Version 19.4.0
Wed Mar 4 22:28:40 PST 2020
root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
=== Enabled user installed extensions ===
Code Coverage 1.0
from vsmac-codecoverage.
Hi, sorry for the long wait and thank you for the extra detail.
This is a known issue.
.NET Framework projects like Xamarin projects are currently always reporting 0% coverage.
There is currently no fix planned since .NET Framework is being phased out in favour of .NET Core.
I would suggest moving your testable business logic into separate .NET Core projects and running your unit tests against that.
from vsmac-codecoverage.
Hi @ademanuele
I got this working in a plain xamarin project which was a basic hello world. When I try it now on my real project I do get the same issue as above. When I set the flag IncludeTestAssembly = true it does show all the test classes it runs through correct. I am just missing the coverage on the actual classes.
Is there any debug flags I could set to get a little more info why and where tool is failing?
where is the coverage tool saving the tmp files ?
Sami
from vsmac-codecoverage.
Hi @hulluP.
This sounds like your unit test project is targeting .NET Standard while your Xamarin project is targeting .NET Framework.
If the Xamarin project is a bit old, that will probably be the case.
If it is the case. I'd recommend migrating your Xamarin project to .NET Standard.
As for settings you can configure, you can find those on the README. But basically it's most runsetting that coverlet can support.
The coverage results are stored at /bin/Debug/netstandard2.0/.coverage.json
Your directory structure might be a bit different tho.
from vsmac-codecoverage.
Related Issues (18)
- Can't install on Visual Studio for Mac 2019 HOT 8
- Unable to add repository HOT 4
- Extension Window Is Blank HOT 4
- ExcludeFromCodeCoverage not working for methods
- Setting lines as uncovered without apparent reason
- Coverage window is blank after VS Update HOT 20
- Not able to access the Coverage pad through View -> Pads -> Coverage.
- Facing this issue.. Please suggest am i missing something or what i need to do?
- Unable to install with newer versions of dependencies HOT 1
- Infinite "running test" after failure build HOT 1
- VisualStudio Mac 2022 install HOT 19
- Update mono dependency or document required mono version HOT 5
- Support .runsettings HOT 9
- Update to latest VS4Mac HOT 7
- Hits file not found, reports 0%
- Lambda expressions cause method to show null coverage HOT 4
- Branch coverage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vsmac-codecoverage.