Skip to content

PSRemotely - Issue with parsing Describe blocks #27

@DexterPOSH

Description

@DexterPOSH

While wrapping the Pester tests in PSRemotely, the test name needs to be at the first position mentioned like below :-

PSRemotely {
    Node AD {
        Describe 'testIPconfig' {
             # Tests here
        }
    }
}

At the moment for specifying tags, one has to use the below :-

PSRemotely {
    Node AD {
        Describe 'testIPconfig' -Tag DummyTag {
             # Tests here
        }
    }
}

If anything else then above is specified then parsing the Describe block for the test name fails. For example below fails :-

PSRemotely {
    Node AD {
        Describe -name 'testIPconfig'  {
             # Tests here
        }
    }
}

Below format also fails :-

PSRemotely {
    Node AD {
        Describe -Tag 'dummytag' 'testIPconfig' {
             # Tests here
        }
    }
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions