Managed plugins don't show in Code Coverage window

I’m trying to set up Unity Code Coverage in a project where all of my scripts are compiled into managed plugiins (DLL files). For some reason, though my DLLs are clearly present under Assets/ in the Project window, I am not seeing these plugins listed in the “Included Assemblies” dropdown of the Code Coverage window (“Window > Analysis > Code Coverage”). Is there like an attribute that I need to add to these assemblies, or specific folder in which they must be placed, to be picked up by Unity Code Coverage? I can’t find anything about this online or in the docs…

I am using Code Coverage 1.2.6 in Unity 6000.0.30f1 on a Windows 11 machine. The DLLs were compiled against .NET Standard 2.1 in Visual Studio 2022.

Hi Rabadash8820. At the moment the code coverage package does not support coverage gathering for prebuilt libraries. We have got an internal task to implement this feature request in the future.

1 Like

Ah, bummer, thanks for letting me know. Maybe this was documented somewhere that I missed. Will this be announced somewhere when it’s implemented, or should I just keep my eye on the package Changelog?

I don’t want to get your hopes up as the focus is on other priorities and there is no timeline set for this yet. I will make sure to update here when there is more information.

1 Like