-
Notifications
You must be signed in to change notification settings - Fork 8
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
Formatting pester output to HTML document results in 'ClassID' cannot be found exception #36
Comments
@ChrisLynchHPE , thank you for your feedback. We will investigate it soon. |
PS >Invoke-Pester Desktop:\foo.test.ps1 -Quiet -PassThru | format-pester -DumpPScriboObject -Language en-us | select -ExpandProperty TOC
Id Number Level Name
-- ------ ----- ----
RESULTSSUMMARY 1 0 Results summary
DETAILSFORFAILEDTESTS 2 0 Details for failed tests
DETAILSFORPASSEDTESTS 3 0 Details for passed tests
PS >Invoke-Pester Desktop:\foo.test.ps1 -Quiet -PassThru | format-pester -DumpPScriboObject -Language en-us | select -ExpandProperty SECTIONS
Id Name Type
-- ---- ----
7dbd5eec-1cc0-4707-bb6f-e82497f9804c Table of Contents PScribo.TOC
RESULTSSUMMARY Results summary PScribo.Section
DETAILSFORFAILEDTESTS Details for failed tests PScribo.Section
DETAILSFORPASSEDTESTS Details for passed tests PScribo.Section |
@ChrisLynchHPE , my first impression is that issue exits in the PScribo module. To investigate it I need to update Format-Pester - I've found errors in assigning parameters to 'DumpPScriboObjectParamSet' . I hope that I'll finish it before Monday. As I see even if error is displayed html file is generated correctly. |
It looks like resolved by iainbrighton/PScribo@9ab6faf . CC: @iainbrighton |
@it-praktyk @equelin If that branch solves your issue, do I need to publish it to the PSGallery? |
I'll confirm it tonight. |
@iainbrighton, I tested Format-Pester with PScribo after iainbrighton/PScribo@9ab6faf. I can confirm that the issue reported by @ChrisLynchHPE is resolved - thank you. |
@iainbrighton, do you have any plans to publish updated PScribo module soon? Thx. |
@it-praktyk I'll try and publish the dev branch to the Gallery later today or tomorrow 😄. |
Based on the README.md of PScribo it was corrected in the version 0.7.18. |
I just updated pester, Format-Pester and PScribo (versions are noted below) on my Windows 10 1703 system to the current versions posted in PowerShellGallery, and when using Format-Pester to output HTML results, the exception is generated:
My pester test is just a very simple test that I wanted to validate nested contexts in a pester test run:
Output from
Get-Module
and$PSVersionTable
:I even commented out the nested context section, and I still get the same exception above. Any ideas?
The text was updated successfully, but these errors were encountered: