csmacnz / coveralls.net-samples Goto Github PK
View Code? Open in Web Editor NEWSample Coveralls.net projects as reference for how it is used.
Sample Coveralls.net projects as reference for how it is used.
The Roslyn C# compiler is now available on Mono and it’s called csc. It enerates Portable PDB (.pdb) debug files instead of Mono’s MDB (.mdb) format. monocov expects to receive mdb file next to analyzed assembly.
Unfortunately the pdb2mdb won't the the trick since assemblies compiled with csc are treated as portable assemblies and during conversion the exception is being thrown. Do you plan to update the source code to address this issue?
Thanks for the sample. I would like to point out something. Repo tokens should not be exposed in build configuration. AppVeyor lets you create environment variables in project settings.
Hi, I'm using the template of .Net Core + xUnit + OpenCover + Appveyor Branch
. And I encountered the error:
Attempting to gather dependency information for package 'OpenCover.4.6.166' with respect to project 'packages', targeting 'Any,Version=v0.0'
Gathering dependency information took 511.76 ms
Attempting to resolve dependencies for package 'OpenCover.4.6.166' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'OpenCover.4.6.166'
Resolved actions to install package 'OpenCover.4.6.166'
Retrieving package 'OpenCover 4.6.166' from 'nuget.org'.
GET https://api.nuget.org/v3-flatcontainer/opencover/4.6.166/opencover.4.6.166.nupkg
OK https://api.nuget.org/v3-flatcontainer/opencover/4.6.166/opencover.4.6.166.nupkg 28ms
Installing OpenCover 4.6.166.
Adding package 'OpenCover.4.6.166' to folder 'C:\projects\casbin-net\packages'
Added package 'OpenCover.4.6.166' to folder 'C:\projects\casbin-net\packages'
Successfully installed 'OpenCover 4.6.166' to packages
Executing nuget actions took 977.08 ms
You can invoke the tool using the following command: csmacnz.Coveralls
Tool 'coveralls.net' (version '1.0.0') was successfully installed.
Executing: C:\Program Files\dotnet\dotnet.exe
xUnit.net Console Runner (64-bit .NET Core 4.6.26614.01)
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
Committing...
No results, this could be for a number of reasons. The most common reasons are:
1) missing PDBs for the assemblies that match the filter please review the
output file and refer to the Usage guide (Usage.rtf) about filters.
2) the profiler may not be registered correctly, please refer to the Usage
guide and the -register switch.
Usage:
csmacnz.Coveralls (--opencover | --dynamiccodecoverage | --monocov | --exportcodecoverage | --chutzpah | --lcov | --ncover | --reportgenerator | --multiple) -i ./opencovertests.xml (--repoToken <repoToken> | [--repoTokenVariable <repoTokenVariable>]) [-o ./opencovertests.json] [--dryrun] [--useRelativePaths [--basePath <path>] ] [--commitId <commitId> --commitBranch <commitBranch> [--commitAuthor <commitAuthor> --commitEmail <commitEmail> --commitMessage <commitMessage>] ] [--jobId <jobId>] [--serviceName <Name>] [--serviceNumber <Number>] [--pullRequest <pullRequestId>] [--treatUploadErrorsAsWarnings] [--parallel]
csmacnz.Coveralls --version
csmacnz.Coveralls --help
Command exited with code 1
My project is: https://github.com/casbin/Casbin.NET. It contains two projects:
The Appveyor console is: https://ci.appveyor.com/project/hsluoyz/casbin-net
I don't know how to solve it, can you help me? Thanks!
Feel free to close if you don't have the time, but I could certainly benefit from an mspec+appveyor example. 👍
I'm trying to get a C# project to run tests and supply coverage report to coveralls.io following the script in the nunit-monocov-travis-vi branch. The make process fails with the following errors:
make
mcs -debug /target:exe /out:monocov.exe -define:GUI_gtk -r:Mono.Cecil -r:Mono.CompilerServices.SymbolWriter -pkg:gtk-sharp-2.0 -pkg:glade-sharp-2.0 -r:System.Drawing -resource:gui/gtk/monocov.glade,monocov.glade Constants.cs CoverageItem.cs NamespaceCoverageItem.cs ClassCoverageItem.cs MethodCoverageItem.cs CoverageModel.cs SourceFileCoverageData.cs XmlExporter.cs HtmlExporter.cs Options.cs MonoCovOptions.cs MonoCovMain.cs gui/gtk/MonoCov.cs gui/gtk/CoverageView.cs gui/gtk/SourceWindow.cs -resource:style.xsl,style.xsl -resource:trans.gif,trans.gif
HtmlExporter.cs(42,10): warning CS0618: `System.Xml.Xsl.XslTransform' is obsolete: `This class has been deprecated. Please use System.Xml.Xsl.XslCompiledTransform instead. http://go.microsoft.com/fwlink/?linkid=14202'
HtmlExporter.cs(80,21): warning CS0618: `System.Xml.Xsl.XslTransform' is obsolete: `This class has been deprecated. Please use System.Xml.Xsl.XslCompiledTransform instead. http://go.microsoft.com/fwlink/?linkid=14202'
Compilation succeeded - 2 warning(s)
cc coverage.c -O2 -g -DVERSION=\"0.2\" `pkg-config --cflags mono-2` `pkg-config --libs mono-2` `pkg-config --cflags glib-2.0` `pkg-config --libs glib-2.0` --shared -fPIC -o libmono-profiler-monocov.so
coverage.c: In function ‘mono_profiler_startup’:
coverage.c:129:28: error: ‘MONO_PROFILE_INS_COVERAGE’ undeclared (first use in this function)
mono_profiler_set_events (MONO_PROFILE_INS_COVERAGE | MONO_PROFILE_COVERAGE | MONO_PROFILE_ASSEMBLY_EVENTS);
^
coverage.c:129:28: note: each undeclared identifier is reported only once for each function it appears in
coverage.c:129:56: error: ‘MONO_PROFILE_COVERAGE’ undeclared (first use in this function)
mono_profiler_set_events (MONO_PROFILE_INS_COVERAGE | MONO_PROFILE_COVERAGE | MONO_PROFILE_ASSEMBLY_EVENTS);
^
coverage.c:129:80: error: ‘MONO_PROFILE_ASSEMBLY_EVENTS’ undeclared (first use in this function)
mono_profiler_set_events (MONO_PROFILE_INS_COVERAGE | MONO_PROFILE_COVERAGE | MONO_PROFILE_ASSEMBLY_EVENTS);
^
coverage.c: At top level:
coverage.c:312:1: error: unknown type name ‘MonoProfileCoverageEntry’
output_entry (MonoProfiler *prof, const MonoProfileCoverageEntry *entry)
^
coverage.c: In function ‘output_entry’:
coverage.c:318:42: error: request for member ‘iloffset’ in something not a structure or union
fprintf (prof->outfile, "%d %d\t", entry->iloffset - prev_offset, entry->counter);
^
coverage.c:318:73: error: request for member ‘counter’ in something not a structure or union
fprintf (prof->outfile, "%d %d\t", entry->iloffset - prev_offset, entry->counter);
^
coverage.c:319:21: error: request for member ‘iloffset’ in something not a structure or union
prev_offset = entry->iloffset;
^
make: *** [libmono-profiler-monocov.so] Error 1
The command "make" failed and exited with 2 during .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.