Giter Club home page Giter Club logo

coveralls.net-samples's People

Contributors

csmacnz avatar jimver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

coveralls.net-samples's Issues

monocov will not work with mono 5.0

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?

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.

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:

  1. NetCasbin: netstandard2.0, the core library
  2. NetCasbin.UnitTest: netcoreapp2.1, the test cases

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!

mspec

Feel free to close if you don't have the time, but I could certainly benefit from an mspec+appveyor example. 👍

make process fails on nunit-monocov-travis-vi branch

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 .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.