Code Coverage: report for external DLL code files

Hello there,

I have code that is in a separate C# project compiled as DLL, but they are consumed by the main Unity project.

I was writing tests using Unity’s test framework since there’s Unity code that bootstraps this custom DLL code, but then I’ve noticed that even though the tests work, there is no coverage support for the files on this custom DLL.

Is there a way to cover files from this custom DLL, even though it’s not a regular Unity ASMDEF?

Thanks!

OP here, just in case.
Thread and question still valid!

Thanks,

Hi. At the moment code coverage package does not support coverage gathering for already prebuilt libraries. We’ve opened an internal task and will evaluate this feature request in the future.

1 Like