docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Upgrading to Code Coverage package version 1.2

    To upgrade to Code Coverage package version 1.2, you need to do the following:

    • Update assembly filtering aliases in batchmode
    • Rename pathStrippingPatterns to pathReplacePatterns in batchmode

    Note: If you're upgrading from a version older than 1.1, follow the upgrade guide for version 1.1 first.

    Update assembly filtering aliases in batchmode

    • Rename assembly filtering aliases when running in batchmode. <user> alias was renamed to <assets> and <project> was renamed to <all>.

    Rename pathStrippingPatterns to pathReplacePatterns in batchmode

    • Rename pathStrippingPatterns to pathReplacePatterns in batchmode.

      Example:

      Change pathStrippingPatterns:C:/MyProject/ to pathReplacePatterns:C:/MyProject/,.
      This is equivalent to stripping C:/MyProject/ by replacing C:/MyProject/ with an empty string.

    Upgrading to Code Coverage package version 1.1

    To upgrade to Code Coverage package version 1.1, you need to do the following:

    • Update path filtering globbing rules

    Update path filtering globbing rules

    • Update the path filtering globbing rules in your batchmode commands and code coverage window. To keep the current behavior when using globbing to match any number of folders, the * character should be replaced with **. A single * character can be used to specify a single folder layer.

      Examples:

      pathFilters:+C:/MyProject/Assets/Scripts/* will include all files in the C:/MyProject/Assets/Scripts folder. Files in subfolders will not be included.
      pathFilters:+C:/MyProject/Assets/Scripts/** will include all files under the C:/MyProject/Assets/Scripts folder and any of its subfolders.

    For a full list of changes and updates in this version, see the Code Coverage package changelog.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)