檢視原始碼 ExUnit.TestModule (ExUnit v1.16.2)

一個結構,用來保留測試模組的資訊。

它由格式化程式接收,並包含下列欄位

  • :file - (自 v1.11.0 起) 測試模組的檔案

  • :name - 測試模組名稱

  • :state - 測試錯誤狀態 (請參閱 ExUnit.state/0)

  • :tests - 此模組中的所有測試

摘要

類型

@type t() :: %ExUnit.TestModule{
  file: binary(),
  name: module(),
  state: ExUnit.state(),
  tags: map(),
  tests: [ExUnit.Test.t()]
}