Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tests should be marked and reported as skipped if not applicable to the platform #2887

Copy link
Copy link
@JamesWTruher

Description

@JamesWTruher
Issue body actions

We would really like to have our tests be reported as skipped if they are not applicable to a given platform.

Code which looks like this:

if ($IsWindows) {
$script:catalogPath = "" 
Describe "Test suite for NewFileCatalogAndTestFileCatalogCmdlets" -Tags "CI" {
    #compare two hashtables 
    function CompareHashTables
    {
        param
        (
          $hashTable1,
          $hashTable2
        )
        foreach ($key in $hashTable1.keys)
        {
        . . .

this means that these tests will only be reported on when run on a windows system. We won't be able to compare test counts across systems.

Steps to reproduce

inspect test/powershell/Modules\Microsoft.PowerShell.Security\FileCatalog.Tests.ps1

Expected behavior

Each test should be reported as skipped during a test run if it is not applicable to the system.

Actual behavior

Tests are not reported at all

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

WG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.