0

OpenCover was running fine until I replace this line of code :

myObject = myObjectRepository.SelectAll().ToList();

by

myObject = myObjectRepository.SelectAll().OrderBy(x => x.MyProp).ToList();

and then I loose the opencover's report :

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.

Does anybody can explain that to me?

jBravo
  • 873
  • 1
  • 9
  • 28
  • Try doing a clean and a full rebuild and check that your PDBs are generated correctly – Shaun Wilde Sep 23 '16 at 22:29
  • Thanks for your answer. This is happening on our continuous deployment platform. The project is rebuild from scratch. The PDB are generated correctly. – jBravo Sep 26 '16 at 09:13
  • What does the xml file say why the assemblies weren't covered? You could raise an issue with OpenCover but you'll need to provide a repeatable example. The issue however is more likely environmental (local to your setup) so unless you are willing to give someone access your CD environment it'll probably go unresolved. – Shaun Wilde Sep 27 '16 at 20:45

1 Answers1

0

My bad.

I was using an old version (4.5.3522).

I updated to the version 4.6.519 and this problem disappeared.

jBravo
  • 873
  • 1
  • 9
  • 28