mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 12:32:30 +01:00
Run benchmark specs optionally
This commit is contained in:
parent
9b6a9082b3
commit
84135eac5b
@ -2,7 +2,8 @@ require_relative 'helper'
|
|||||||
require 'rack/test'
|
require 'rack/test'
|
||||||
require 'app'
|
require 'app'
|
||||||
|
|
||||||
describe 'benchmark the app' do
|
if ENV['BENCH']
|
||||||
|
describe 'benchmark the app' do
|
||||||
include Rack::Test::Methods
|
include Rack::Test::Methods
|
||||||
|
|
||||||
let(:app) { Sinatra::Application }
|
let(:app) { Sinatra::Application }
|
||||||
@ -32,4 +33,5 @@ describe 'benchmark the app' do
|
|||||||
get "/#{random_date}?base=USD"
|
get "/#{random_date}?base=USD"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
require 'minitest/autorun'
|
require 'minitest/autorun'
|
||||||
require 'minitest/benchmark'
|
require 'minitest/benchmark' if ENV['BENCH']
|
||||||
require 'minitest/pride'
|
require 'minitest/pride'
|
||||||
|
Loading…
Reference in New Issue
Block a user