Skip to content

Class name inconsistency in Code Coverage Report  #1348

Open
@Glober777

Description

@Glober777

1. General summary of the issue

While testing out new Code Coverage Reporting capability in Azure DevOps with a dummy PowerShell module, I've noticed, that if my module has just a single cmdlet implemented, the class name property is generated based of the module path, and as soon as I add more cmdlets to the module, the class name in the code coverage report, becomes prefixed with the parent folder's name of the module:

  • Single module member:
    image

  • Multiple module members:
    image

2. Describe Your Environment

Pester version     : 4.8.1 C:\Users\seriavio\Documents\WindowsPowerShell\Modules\Pester\4.8.1\Pester.psd1
PowerShell version : 5.1.17763.503
OS version         : Microsoft Windows NT 10.0.17763.0

3. Expected Behavior

Expected behavior would be to report the class name consistently (either with or without the parent folder name)

4.Current Behavior

Class name is affected by the number of module members

5. Possible Solution

6. Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions