Skip to content

Commit

Permalink
Add rake task for style and tests
Browse files Browse the repository at this point in the history
Instead of remembering all the commands it would be nice to have rake task to run tests and style checkers
closes openSUSE#164
  • Loading branch information
rahul2240 committed Feb 16, 2018
1 parent 9b75be5 commit 5c8c1f1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,20 @@ namespace :gem do
system 'gem build trollolo.gemspec'
end
end

# rake task for rspec and rubocop
# rake -T (for rake tasks)
require 'rubocop/rake_task'
require 'rspec/core/rake_task'

task default: %I[:rubocop, :spec]

desc 'Run tests'
task :spec do
RSpec::Core::RakeTask.new
end

desc 'Run rubocop'
task :rubocop do
RuboCop::RakeTask.new
end

0 comments on commit 5c8c1f1

Please sign in to comment.