Skip to content

Commit

Permalink
chore: remove axe-matchers lib & spec files (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeyyy committed Jul 14, 2020
1 parent 441c566 commit 246c3d6
Show file tree
Hide file tree
Showing 82 changed files with 392 additions and 3,364 deletions.
75 changes: 3 additions & 72 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
require 'rake/clean'
require "rake/clean"
require "bundler/gem_tasks"
require 'cucumber/rake/task'
require 'rspec/core/rake_task'

CLOBBER.include 'pkg', 'node_modules'
CLOBBER.include "pkg", "node_modules"

# add npm-install as pre-req for build
Rake::Task[:build].enhance [:npm]

###########
# npm
###########

desc "alias for npm:install"
task :npm => 'npm:install'
task :npm => "npm:install"
namespace :npm do
desc "Install npm dependencies"
task :install do
Expand All @@ -40,69 +37,3 @@ namespace :npm do
sh "npm view axe-core version && npm list axe-core"
end
end

###########
# RSpec
###########

RSpec::Core::RakeTask.new :spec

namespace :spec do
desc 'Skip tests tagged as :slow'
RSpec::Core::RakeTask.new :fast do |t|
t.rspec_opts = "--tag ~slow"
end

desc 'Run RSpec code examples with JUnit formatter'
RSpec::Core::RakeTask.new :ci do |t|
t.rspec_opts = "--format RspecJunitFormatter --out results/rspec.xml"
end
end

###########
# Cucumber
###########

Cucumber::Rake::Task.new :cucumber

namespace :cucumber do
desc "Run Cucumber features with each driver & browser"
task :all => %w[capybara selenium watir]

desc "Run Cucumber features with each headless browser"
task :headless => %w[selenium:chrome:headless capybara:webkit]

desc "Run Cucumber features with Capybara driving each browser"
task :capybara => %w[capybara:firefox capybara:chrome capybara:safari capybara:webkit]

desc "Run Cucumber features with Selenium driving each browser"
task :selenium => %w[selenium:firefox selenium:chrome selenium:safari]

desc "Run Cucumber features with Watir driving each browser"
task :watir => %w[watir:firefox watir:chrome watir:safari]

desc "Run Cucumber features with Firefox under each driver"
task :firefox => %w[capybara:firefox selenium:firefox watir:firefox]

desc "Run Cucumber features with Chrome under each driver"
task :chrome => %w[capybara:chrome selenium:chrome watir:chrome]

desc "Run Cucumber features with Safari under each driver"
task :safari => %w[capybara:safari selenium:safari watir:safari]

Cucumber::Rake::Task.new 'ci', 'Run Cucumber features and save results in junit xml' do |t| t.cucumber_opts = "-p capybara -p chrome --format junit --out results/cucumber/" end

Cucumber::Rake::Task.new 'capybara:webkit', 'Run Cucumber features with Capybara driving Webkit' do |t| t.cucumber_opts = "-p capybara -p webkit" end
Cucumber::Rake::Task.new 'capybara:firefox', 'Run Cucumber features with Capybara driving Firefox' do |t| t.cucumber_opts = "-p capybara -p firefox" end
Cucumber::Rake::Task.new 'capybara:chrome', 'Run Cucumber features with Capybara driving Chrome' do |t| t.cucumber_opts = "-p capybara -p chrome" end
Cucumber::Rake::Task.new 'capybara:headless', 'Run Cucumber features with Capybara driving headless Chrome' do |t| t.cucumber_opts = "-p capybara -p chrome-headless" end
Cucumber::Rake::Task.new 'capybara:safari', 'Run Cucumber features with Capybara driving Safari' do |t| t.cucumber_opts = "-p capybara -p safari" end

Cucumber::Rake::Task.new 'selenium:firefox', 'Run Cucumber features with Selenium driving Firefox' do |t| t.cucumber_opts = "-p selenium -p firefox" end
Cucumber::Rake::Task.new 'selenium:chrome', 'Run Cucumber features with Selenium driving Chrome' do |t| t.cucumber_opts = "-p selenium -p chrome" end
Cucumber::Rake::Task.new 'selenium:safari', 'Run Cucumber features with Selenium driving Safari' do |t| t.cucumber_opts = "-p selenium -p safari" end

Cucumber::Rake::Task.new 'watir:firefox', 'Run Cucumber features with Watir driving Firefox' do |t| t.cucumber_opts = "-p watir -p firefox" end
Cucumber::Rake::Task.new 'watir:chrome', 'Run Cucumber features with Watir driving Chrome' do |t| t.cucumber_opts = "-p watir -p chrome" end
Cucumber::Rake::Task.new 'watir:safari', 'Run Cucumber features with Watir driving Safari' do |t| t.cucumber_opts = "-p watir -p safari" end
end
15 changes: 0 additions & 15 deletions config/cucumber.yml

This file was deleted.

7 changes: 0 additions & 7 deletions examples/capybara/Gemfile

This file was deleted.

19 changes: 0 additions & 19 deletions examples/capybara/features/a11y.feature

This file was deleted.

6 changes: 0 additions & 6 deletions examples/capybara/features/step_definitions/steps.rb

This file was deleted.

27 changes: 0 additions & 27 deletions examples/capybara/features/support/env.rb

This file was deleted.

7 changes: 0 additions & 7 deletions examples/rspec-capybara/Gemfile

This file was deleted.

43 changes: 0 additions & 43 deletions examples/rspec-capybara/spec/a11y_spec.rb

This file was deleted.

6 changes: 0 additions & 6 deletions examples/selenium/Gemfile

This file was deleted.

16 changes: 0 additions & 16 deletions examples/selenium/features/a11y.feature

This file was deleted.

6 changes: 0 additions & 6 deletions examples/selenium/features/step_definitions/steps.rb

This file was deleted.

30 changes: 0 additions & 30 deletions examples/selenium/features/support/env.rb

This file was deleted.

6 changes: 0 additions & 6 deletions examples/watir/Gemfile

This file was deleted.

16 changes: 0 additions & 16 deletions examples/watir/features/a11y.feature

This file was deleted.

6 changes: 0 additions & 6 deletions examples/watir/features/step_definitions/steps.rb

This file was deleted.

30 changes: 0 additions & 30 deletions examples/watir/features/support/env.rb

This file was deleted.

10 changes: 0 additions & 10 deletions features/built_in_steps.feature

This file was deleted.

10 changes: 0 additions & 10 deletions features/iframes.feature

This file was deleted.

15 changes: 0 additions & 15 deletions features/step_definitions/steps.rb

This file was deleted.

0 comments on commit 246c3d6

Please sign in to comment.