Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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