csMACnz / Coveralls.net-Samples

Sample Coveralls.net projects as reference for how it is used.
22 stars 22 forks source link

monocov will not work with mono 5.0 #6

Open piotrzajac opened 6 years ago

piotrzajac commented 6 years ago

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?

csMACnz commented 6 years ago

Hi @piotrzajac Thanks for your interest in running coveralls.net on Linux.

At this stage, there isn't a known way to run coverage over portable pdb files. This is something I am keeping a close eye on and will provide examples as soon as it is.

With regards to mono, I am not sure about mono 5, but can take a look and see if I can get a sample working. I do not work on any of the coverage tools myself, just with their results files. On windows, it is possible to produce a full pdb, which is usually compatible with existing coverage tools. That would probably be compatible with pdf2mdb, however I am not sure if these exist on Linux at all, or if mono produces them.

I am interested to hear back if you do find a solution, and will provide an example accordingly. Otherwise, in the near future we should have a cascade of a few releases of dependent projects that should mean OpenCover will work on Linux, and on portable pdbs, and therefore we can provide coverage on Linux to coveralls.