Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TestItemCollection

Collection of test items, found in TestItem.children and TestController.items.

层级

  • TestItemCollection

索引

Properties(1)

Methods(5)

Properties(1)

Readonly size

size: number

Gets the number of items in the collection.

Methods(5)

replace

  • replace(items: readonly TestItem[]): void
  • Replaces the items stored by the collection.

    Parameters

    • items: readonly TestItem[]

      Items to store.

    Returns void

forEach

add

  • Adds the test item to the children. If an item with the same ID already exists, it'll be replaced.

    Parameters

    Returns void

delete

  • delete(itemId: string): void
  • Removes a single test item from the collection.

    Parameters

    • itemId: string

      Item ID to delete.

    Returns void

get

  • get(itemId: string): undefined | TestItem
  • Efficiently gets a test item by ID, if it exists, in the children.

    Parameters

    • itemId: string

      Item ID to get.

    Returns undefined | TestItem

    The found item or undefined if it does not exist.

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

Generated by TypeDoc. Maintained by 洛竹