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
{{ message }}
This repository was archived by the owner on Sep 4, 2020. It is now read-only.
AS A reader of the test output
I WANT all tests _NOT_ executed to show as skipped
SO THAT my test results more clearly indicate reality; the tests were not run and so should show as skipped instead of result unknown.
Current Behavior
When running Invoke-Vester, all items in the config which have been removed or whose value has been set to null show in the test results as Unknown because no tests run but the describe block still generates a data.
Pester Host Output (Tests)
Pester Host Output (Summary)
ReportUnit Report (Suites)
ReportUnit Report (Summary)
Possible Solution
Modify the project to possibly either ignore the describe blocks for whom the value is null or not in the config, not showing any data at all for them;
Modify the project to create tests for each applicable object but skip them.
A combination of these, where items not in the config are not shown but items in the config and set to null are skipped.
These aren't the only ways to solve this, just the ones that came initially to mind.
Context
Often the readers of test output aren't the people most familiar with the ins and outs of how the test project works - they're either stakeholders who just want to be able to poke in and see how things are doing, or engineers/admins who are keeping an eye on health/compliance, or people peer reviewing changes, or auditors, or whatever. The primary value of this project from my perspective is that the people reviewing the output don't need to know how it works, just be able to use the information to drive better decisions and improve their insight into the environment.
Having these tests show up in a report as unknown or to see them visually run but without any tests underneath them executing can be confusing and concerning for people or lead them down wrong thought-lanes.
Expected Behavior
Current Behavior
When running
Invoke-Vester, all items in the config which have been removed or whose value has been set tonullshow in the test results asUnknownbecause no tests run but the describe block still generates a data.Pester Host Output (Tests)
Pester Host Output (Summary)
ReportUnit Report (Suites)
ReportUnit Report (Summary)
Possible Solution
nullare skipped.These aren't the only ways to solve this, just the ones that came initially to mind.
Context
Often the readers of test output aren't the people most familiar with the ins and outs of how the test project works - they're either stakeholders who just want to be able to poke in and see how things are doing, or engineers/admins who are keeping an eye on health/compliance, or people peer reviewing changes, or auditors, or whatever. The primary value of this project from my perspective is that the people reviewing the output don't need to know how it works, just be able to use the information to drive better decisions and improve their insight into the environment.
Having these tests show up in a report as
unknownor to see them visually run but without any tests underneath them executing can be confusing and concerning for people or lead them down wrong thought-lanes.