Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Tests Not Executed Should Show as Skipped #162

@michaeltlombardi

Description

@michaeltlombardi

Expected Behavior

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)

image

Pester Host Output (Summary)

image

ReportUnit Report (Suites)

image

ReportUnit Report (Summary)

image

Possible Solution

  1. 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;
  2. Modify the project to create tests for each applicable object but skip them.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions