Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-Pester shows 'PropertyNotFoundException: The property 'Count' cannot be found on this object.' because of Set-StrictMode #33

Open
ddemeyer opened this issue May 11, 2018 · 0 comments

Comments

@ddemeyer
Copy link
Contributor

When Set-StrictMode -Version Latest is set, the Count property on non-collections forces errors and hence failed tests.
[-] Pipeline IshObject Single 193ms PropertyNotFoundException: The property 'Count' cannot be found on this object. Verify that the property exists. at <ScriptBlock>, C:\github\ISHRemote\Source\ishremote\trisoft.ishremote\Cmdlets\UserRole\AddIshUserRole.Tests.ps1: line 84 [+] Pipeline IshObject Multiple 295ms Cleaning Test Data and Variables Tests completed in 138.26s Passed: 421 Failed: 86 Skipped: 4 Pending: 0 Inconclusive: 0

Workaround for now Set-StrictMode -Off making ISHRemote tests successful on Tridion Docs 13 SP1 (13.0.1)
Tests completed in 123.09s Passed: 507 Failed: 0 Skipped: 4 Pending: 0 Inconclusive: 0

@ddemeyer ddemeyer added this to the V7.0 milestone Oct 7, 2021
@ddemeyer ddemeyer added the could label Oct 7, 2021
@ddemeyer ddemeyer removed this from the v7.0 milestone Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant