C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeReTesting.Utilities.Skip Class Reference

Class used in unit tests to mark tests as skipped by using Assert.Inconclusive() method. More...

Classes

class  UntilRelease
 A helper class containing default skip dates. More...
 

Static Public Member Functions

static void Indefinitely (string ticket=null)
 Skip the specified test.
 
static void Until (DateTime skipExpiry, string targetRelease=null, string ticket=null)
 Skip the specified test until the specified date, after which this test should be treated as failing rather than skipped.
 

Static Public Attributes

static readonly bool FAIL_ON_EXPIRED_SKIP = EnvironmentSettings.FAIL_ON_EXPIRED_SKIP
 Whether skips are configured to fail if they are past due. If true, an overdue skip will invokeAssert.Fail(), if false, an overdue skip will do nothing, and ensuing test code will run.
 
static readonly bool SKIPS_ENABLED = EnvironmentSettings.SKIPS_ENABLED
 Whether skips are currently configured to be enabled. If disabled, calls to Skip tests do nothing, and ensuing test code will run.
 

Detailed Description

Class used in unit tests to mark tests as skipped by using Assert.Inconclusive() method.

Definition at line 13 of file SkipUntil.cs.

Member Function Documentation

◆ Indefinitely()

static void AnalyzeReTesting.Utilities.Skip.Indefinitely ( string  ticket = null)
inlinestatic

Skip the specified test.

Parameters
ticket(optional) A ticket referencing the reason for this skipped test.

Definition at line 54 of file SkipUntil.cs.

◆ Until()

static void AnalyzeReTesting.Utilities.Skip.Until ( DateTime  skipExpiry,
string  targetRelease = null,
string  ticket = null 
)
inlinestatic

Skip the specified test until the specified date, after which this test should be treated as failing rather than skipped.

Parameters
skipExpiryThe DateTime by which this Skip should be resolved.
targetReleaseA description of when this skip is due.
ticket(optional) A ticket referencing the reason for this skipped test.

Definition at line 29 of file SkipUntil.cs.

Member Data Documentation

◆ FAIL_ON_EXPIRED_SKIP

readonly bool AnalyzeReTesting.Utilities.Skip.FAIL_ON_EXPIRED_SKIP = EnvironmentSettings.FAIL_ON_EXPIRED_SKIP
static

Whether skips are configured to fail if they are past due. If true, an overdue skip will invokeAssert.Fail(), if false, an overdue skip will do nothing, and ensuing test code will run.

Definition at line 22 of file SkipUntil.cs.

◆ SKIPS_ENABLED

readonly bool AnalyzeReTesting.Utilities.Skip.SKIPS_ENABLED = EnvironmentSettings.SKIPS_ENABLED
static

Whether skips are currently configured to be enabled. If disabled, calls to Skip tests do nothing, and ensuing test code will run.

Definition at line 17 of file SkipUntil.cs.


The documentation for this class was generated from the following file: