类: RSpec::Core::Notifications::StartNotification

继承
Struct
  • Object
显示全部
定义于
lib/rspec/core/notifications.rb

概述

StartNotification 代表了当套件开始运行时,由报告器发送的通知。它包含了要执行的预期示例数量和 RSpec 的加载时间。

实例属性摘要 折叠

实例属性细节

#countFixnum

计数的数字

返回

  • (Fixnum)

    count 的当前值

26
27
28
# File 'lib/rspec/core/notifications.rb', line 26
def count
  @count
end

#load_timeFloat

启动 RSpec 和加载规范文件所花费的秒数

返回

  • (Float)

    load_time 的当前值

26
27
28
# File 'lib/rspec/core/notifications.rb', line 26
def load_time
  @load_time
end