Skip to content

Commit

Permalink
System testing requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
volmer committed Feb 19, 2021
1 parent 3a00a0f commit 6fbd3c4
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 14 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ source 'https://rubygems.org'

gemspec

gem 'capybara'
gem 'pry-byebug'
gem 'puma'
gem 'rails'
gem 'rake'
gem 'rubocop-shopify'
gem 'selenium-webdriver'
gem 'sqlite3'
gem 'webdrivers', require: false
gem 'yard'
25 changes: 25 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,20 @@ GEM
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
ast (2.4.2)
builder (3.2.4)
byebug (11.1.3)
capybara (3.35.3)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
childprocess (3.0.0)
coderay (1.1.3)
concurrent-ruby (1.1.8)
crass (1.0.6)
Expand Down Expand Up @@ -105,6 +116,7 @@ GEM
pry-byebug (3.9.0)
byebug (~> 11.0)
pry (~> 0.13.0)
public_suffix (4.0.6)
puma (5.2.1)
nio4r (~> 2.0)
racc (1.5.2)
Expand Down Expand Up @@ -155,6 +167,10 @@ GEM
rubocop-shopify (1.0.7)
rubocop (~> 1.4)
ruby-progressbar (1.11.0)
rubyzip (2.3.0)
selenium-webdriver (3.142.7)
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand All @@ -167,9 +183,15 @@ GEM
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
unicode-display_width (2.0.0)
webdrivers (4.5.0)
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (>= 3.0, < 4.0)
websocket-driver (0.7.3)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.26)
zeitwerk (2.4.2)

Expand All @@ -179,13 +201,16 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
capybara
pry-byebug
puma
rails
rake
rubocop-shopify
selenium-webdriver
sqlite3
upgrow!
webdrivers
yard

BUNDLED WITH
Expand Down
11 changes: 3 additions & 8 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@

require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new do |t|
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.warning = true
t.verbose = true
end
APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
load('rails/tasks/engine.rake')

require 'rubocop/rake_task'

RuboCop::RakeTask.new

task default: [:test, :rubocop]
task default: ['db:setup', 'app:test:all', 'rubocop']
6 changes: 0 additions & 6 deletions bin/test

This file was deleted.

12 changes: 12 additions & 0 deletions test/application_system_test_case.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true
require 'test_helper'
require 'webdrivers/chromedriver'
require 'action_dispatch/system_testing/server'

ActionDispatch::SystemTesting::Server.silence_puma = true

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome do |options|
options.add_argument('--disable-dev-shm-usage')
end
end

0 comments on commit 6fbd3c4

Please sign in to comment.