我有这个非常简单和短暂的测试,需要80秒才能运行,有关加速的建议吗?
require 'spec_helper'
describe "Battles" do
let(:character) { (FactoryGirl.create :character) }
describe "Battle button" do
it "redirects to battle screen" do
character.init("fighter")
click("Battle")
expect(page).to have_content character.name
end
end
end
的Gemfile
source 'https://rubygems.org'
ruby '2.0.0'
gem 'pg', '0.15.1'
gem 'rails', '4.0.2'
gem 'bcrypt-ruby', '~> 3.1.2'
gem 'twitter-bootstrap-rails'
gem 'therubyracer'
gem 'devise'
gem 'less-rails'
gem 'will_paginate', '~> 3.0'
gem 'heroku'
group :development, :test do
gem 'rspec-rails', '2.13.1'
gem 'better_errors'
gem 'binding_of_caller'
gem 'factory_girl'
gem 'guard-rspec'
gem 'guard-spork'
gem 'capybara', '2.1.0'
gem 'factory_girl_rails', :require => false
gem 'spork-rails'
end
group :test do
gem 'selenium-webdriver', '2.35.1'
end
group :production do
gem 'rails_12factor', group: :production
end
#gem 'sass-rails', '4.0.1'
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.0.1'
gem 'jquery-rails', '3.0.4'
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'
group :doc do
gem 'sdoc', '0.3.20', require: false
end
答案 0 :(得分:0)
你可以尝试使用Zeus加快速度。
你有很多测试吗?这个是唯一的慢测试还是只进行这个测试?
您的其他配置看起来如何?