Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pester 4 RC, PowerShell Core regression: $PSVersionTable.PSVersion change #864
The error basically just says:
Additionally, the following tests failed in the assertions, but with the same message about SemanticVersion casting ...
And finally, this test also failed for a totally unrelated error, but is already mentioned in #838
A total of 12 tests failed -- all tests pass running in PowerShell 5.1 on the same system.
@Jaykul, thank you for your report.
Could you test the code what you can find in the branch https://github.com/it-praktyk/Pester/tree/DevV4-1_Linux_compatibility_2?
Most of the issues are currently resolved.
referenced this issue
Nov 1, 2017
Normally, one doesn't close issues before merging the PR.
Otherwise, if the PR doesn't get merged, the issue will NEVER be fixed. And I have to point out: there are open PRs in this project from 2014...
I just hit this same issue in adding Linux support to a module of mine (aaronpowell/ps-nvm#35).
Digging through it I came to find that the problem was caused by this line in
if ($PSVersionTable.PSVersion -ge '5.0.10586.122')
Changing it to
if ('5.0.10586.122' -lt $PSVersionTable.PSVersion)
From the branch above has seen it working now.