Skip to content

Question: Is there a way to avoid TestCases initialization? #1722

@kastromatos

Description

@kastromatos

1. General summary of the issue

I've got some heavy initialization for TestCases on 'It' level. By some condition I need to totally ignore this section, but 'ExcludeTag' and 'Skip' didn't work on any level for this case. Is there a way or condition to ignore TestCases discovering?

2. Describe Your Environment

Pester version : 5.0.4
PowerShell version : 5.1.19041.1
OS version : Microsoft Windows NT 10.0.19041.0

3. Expected Behavior

I expect that 'ExcludeTag' / 'Skip' on 'Describe' level allow to ignore internal 'TestCases'.

4.Current Behavior

TestCases passes through initialization during discovery no matter what I do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions