Options
All
  • Public
  • Public/Protected
  • All
Menu

Message associated with the test state. Can be linked to a specific source range -- useful for assertion failures, for example.

层级

  • TestMessage

索引

Methods(1)

Constructors(1)

Properties(4)

Methods(1)

Static diff

  • Creates a new TestMessage that will present as a diff in the editor.

    Parameters

    • message: string | MarkdownString

      Message to display to the user.

    • expected: string

      Expected output.

    • actual: string

      Actual output.

    Returns TestMessage

Constructors(1)

constructor

Properties(4)

message

message: string | MarkdownString

Human-readable message text to display.

Optional expectedOutput

expectedOutput: string

Expected test output. If given with actualOutput, a diff view will be shown.

Optional actualOutput

actualOutput: string

Actual test output. If given with expectedOutput, a diff view will be shown.

Optional location

location: Location

Associated file location.

友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc. Maintained by 洛竹