I am writing a plug-in module for Revit Architecture that provides a .NET API. Essentially, you create an assembly with classes that implement a specific interface. Revit then loads the assembly and makes the interface calls.
I would like to be able to get the current code coverage for my plug-in code, but I found that all the typical code coverage tools (NCover, PartCover, dotCover) do not work in this case, since the Revit host application (Revit.exe) is a native application Windows, not a managed application. The NCover documentation states that NCover will not work if the process in question is a native application process. I assume that the tooling methods used by other tools are similar and therefore have the same root cause for inoperability.
I would like to know if there is a workaround for this case for any of the above tools, or if there is another tool or code coverage method that I could use. TIA.
source
share