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