โšก
as-pect
  • โšกas-pect
  • ๐Ÿš€Getting Started
  • ๐Ÿ”งCLI Configuration
  • ๐Ÿ—๏ธAssemblyScript API
    • ๐Ÿ›๏ธTest Structure
    • ๐Ÿคทโ€โ™€๏ธ Expectations
      • ๐ŸŽญtoBe
      • ๐ŸคจtoStrictEqual
      • ๐ŸงฑtoBlockEqual
      • ๐Ÿ‘ฉโ€๐Ÿซ toBeTruthy and toBeFalsy
      • ๐Ÿ”ขtoBeNaN
      • ๐ŸšซtoBeNull
      • ๐ŸŒŒtoBeFinite
      • โšพtoThrow
      • โž•toBe(Greater|Less)Than
      • ๐Ÿ•ต๏ธโ€โ™€๏ธ toBeCloseTo
      • ๐Ÿ“toHaveLength
      • ๐ŸŽtoContain
      • ๐Ÿ“ฆtoContainEqual
      • โœ๏ธCustom Assertions
    • ๐ŸŽŸ๏ธTypes and Tooling
    • ๐Ÿช“Logging
    • ๐Ÿ‘ฉโ€๐Ÿ”ง RTrace and Memory Leaks
    • ๐Ÿ‘‰๐Ÿ‘ˆ Reflection
  • ๐ŸงถCore API
    • ๐ŸงชTestContext
    • ๐Ÿ‘ขBootstrap Tests Manually
    • ๐ŸŽ›๏ธTestGroup
    • โœ”๏ธTestResult
    • โœ๏ธReporters
      • ๐ŸฉณSummaryReporter
      • ๐Ÿ’ฌVerboseReporter
      • ๐ŸฅฝJSONReporter
      • ๐Ÿ—ƒ๏ธCSVReporter
Powered by GitBook
On this page

Was this helpful?

  1. Core API

TestGroup

A logical grouping of tests.

This is a reporting class designed to collect tests logically by group. The notable parameters in this group for inspection are as follows:

export declare class TestGroup implements ILogTarget {
  
  /** All the tests for this group. */
  tests: TestResult[];
  
  /** Everything that was logged in this group that wasn't inside the test. */
  logs: ReflectedValue[];
  
  /** The name of the group. */
  name: string;
  
  /** An indicator if the group passed. */
  pass: boolean;
  
  /** However long the test group ran. */
  time: number;
  
  /** The start time. */
  start: number;
  
  /** The end time. */
  end: number;
  
  /** Nested groups in this test group. */
  children: TestGroup[];
  
  /** A set of loggable errors. */
  errors: IWarning[];
  
  /** A set of loggable warnings. */
  warnings: IWarning[];
}

Warnings have the following shape:

export interface IWarning {
    /** This is the type of the warning. */
    type: string;
    /** This is the generated warning message. */
    message: string;
    /** This is the stack trace. */
    stackTrace: string;
}
PreviousBootstrap Tests ManuallyNextTestResult

Last updated 5 years ago

Was this helpful?

๐Ÿงถ
๐ŸŽ›๏ธ