GameVsJam/3d Prototyp/Library/PackageCache/com.unity.testtools.codecov.../Documentation~/upgrade-guide.md

2.1 KiB

Upgrading to Code Coverage package version 1.2

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

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 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.