You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Thanks @X-Guardian! -- I had noticed the "corruption" in the raw output log for Linux, but had been unaware of the time impact. Nice call out. I'll put out a PR now to see what impact that practically makes. If it's even remotely close to being that impactful, it's definitely worth it to make the change.
HowardWolosky
added
build
Changes related to the build infrastructure for the project.
tests
A change related to the Pester tests for the module.
labels
May 31, 2020
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 addingSet-GitHubConfiguration -DefaultNoStatus
in aBeforeAll
block for eachDescribe
block, reduces the time for theGitHubRepositories
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.
The text was updated successfully, but these errors were encountered: