Sha256: ac24e3a4f88bf989e209384b84579c1898c70b5f5c644f21c4a1839fb3635b96
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
require 'rake/testtask' task default: :build desc 'Builds the Gem.' task build: :format task build: :self_check task build: :test do sh 'gem build gherkin_lint.gemspec' end desc 'Publishes the Gem' task :push do sh 'gem push gherkin_lint-1.1.0.gem' end desc 'Checks ruby style' task :rubocop do begin sh 'rubocop' rescue puts 'Rubocop failed' end end task test: :rubocop task test: :language task :test do sh 'cucumber --tags ~@skip' end task :format do options = [] options.push '--replace' if ENV['repair'] # TODO: sh "gherkin_format #{options.join ' '} features/*.feature" end task :language do # TODO: sh 'gherkin_language features/*.feature' end task :self_check do disabled_checks = %w[ UnknownVariable BadScenarioName ] sh "RUBYLIB=lib ./bin/gherkin_lint --disable #{disabled_checks.join ','} features/*.feature" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gherkin_lint-1.1.0 | Rakefile |