summaryrefslogtreecommitdiff
path: root/lib/tasks/dev
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-08-13 08:32:10 +0300
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-08-13 08:32:10 +0300
commit463644c8827a6015d9a3669e64ff04683d9f1c3d (patch)
tree35a531a04bcca7b350f02611b712644ab25af4fc /lib/tasks/dev
parent28ddc152e932ae64f2a3a2247de8e0f45299da9c (diff)
downloadgitlab-ce-463644c8827a6015d9a3669e64ff04683d9f1c3d.tar.gz
rspec to capybara-webkit. simplercov now use cucumber
Diffstat (limited to 'lib/tasks/dev')
-rw-r--r--lib/tasks/dev/tests.rake10
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