Sha256: 4fd3acaa6ff9613c70417d5df200f193a8567d5bf1f465bae330ca89280e04e6

Contents?: true

Size: 550 Bytes

Versions: 2

Compression:

Stored size: 550 Bytes

Contents

require 'spec_helper'

describe RspecLogFormatter::PerformanceAnalyzer do
  it "produces a csv of run durations" do
    filepath = File.expand_path("../../../fixtures/test_slowing_down_over_time.history", __FILE__)

    results = RspecLogFormatter::PerformanceAnalyzer.new(filepath).analyze("desc1")
    results.should == {
      "2014-01-21 16:00:00 -0800" => 1.0,
      "2014-01-22 16:00:00 -0800" => 2.0,
      "2014-01-24 16:00:00 -0800" => 3.0,
      "2014-01-29 16:00:00 -0800" => 4.0,
      "2014-01-30 16:00:00 -0800" => 5.0,
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec_log_formatter-0.2.1 spec/lib/rspec_log_analyzer/performance_analyzer_spec.rb
rspec_log_formatter-0.2.0 spec/lib/rspec_log_analyzer/performance_analyzer_spec.rb