Skip to content

Suggestion: Add 'Set-GitHubConfiguration -DefaultNoStatus' to All Pester Tests #206

Closed
@X-Guardian

Description

@X-Guardian

Currently the full suite of Pester tests take between 20 to 25 minutes to run per environment within the CI pipeline. There are currently three environments being tested (Windows, Linux and MacOS) meaning the full CI takes about 1 hour 15 mins to run.

Locally running the GitHubRepositories.tests Pester tests and adding Set-GitHubConfiguration -DefaultNoStatus in a BeforeAll block for each Describe block, reduces the time for the GitHubRepositories tests to run from approx 60 secs to 25 secs.

Extrapolating this up, applying this change to all tests may reduce the full test suite run from 1 hour 15 mins to approx 30 mins.

I've also noticed that the Azure DevOps Pipeline raw log for the 'Run Unit Tests via Pester` step are 'corrupted' by the status output on Linux and MacOS, unlike on Windows. Making this change would also resolve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildChanges related to the build infrastructure for the project.testsA change related to the Pester tests for the module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions