Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Feature Request Code Coverage: report for external DLL code files

Discussion in 'Testing & Automation' started by Deleted User, May 23, 2023.

  1. Deleted User

    Deleted User


    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?

  2. gabriel-bunch


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

  3. JuliusJ


    QA Minion of the month Unity Technologies

    May 20, 2015
    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.
    gabriel-bunch likes this.