Sha256: 7a864b20eab016ad597c682dfb54c93605aec02c856a4b14fa813bd112c148c0

Contents?: true

Size: 538 Bytes

Versions: 2

Compression:

Stored size: 538 Bytes

Contents

require_relative "../helpers"

describe BigBench::PostProcessor::Statistics do
  
  before(:each) do
    Dir.chdir File.dirname(__FILE__)
    Dir.chdir ".."
  end
  
  it "should run and create the following statistics" do    
    BigBench.config.duration = 2.minutes
    BigBench.config.output = "tests/sample_results_big.ljson"
    BigBench.benchmark("index page" => "http://localhost:3001"){ get "/" }
    BigBench.post_process :statistics
    
    lambda{ BigBench.post_processors.first.run! }.should_not raise_exception

  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bigbench-0.0.6 spec/post_processors/statistics_spec.rb
bigbench-0.0.5 spec/post_processors/statistics_spec.rb