diff options
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/dev/tests.rake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tasks/dev/tests.rake b/lib/tasks/dev/tests.rake new file mode 100644 index 00000000000..f91320ebdd2 --- /dev/null +++ b/lib/tasks/dev/tests.rake @@ -0,0 +1,10 @@ +namespace :dev do + desc "DEV | Run cucumber and rspec" + task :tests do + ["cucumber", "rspec spec"].each do |cmd| + puts "Starting to run #{cmd}..." + system("bundle exec #{cmd}") + raise "#{cmd} failed!" unless $?.exitstatus == 0 + end + end +end |