From 37df49f4ef90e67b60a3813671cfc3cc95110681 Mon Sep 17 00:00:00 2001 From: Georgi Tapalilov Date: Tue, 26 Mar 2019 17:33:25 +0200 Subject: [PATCH] Run all specs at once --- bin/gaku | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/gaku b/bin/gaku index f4e4a3218..2064f89a2 100755 --- a/bin/gaku +++ b/bin/gaku @@ -4,6 +4,20 @@ require_relative '../lib/gaku/container' require_relative '../lib/gaku/command/installer' class GakuCLI < Thor + + desc 'specs', 'Run all specs' + def specs() + Dir.chdir("#{__dir__}/../core") do + system('bundle exec rake test_app') + system('bundle exec rspec spec') + end + + Dir.chdir("#{__dir__}/../api") do + system('bundle exec rake test_app') + system('bundle exec rspec spec') + end + end + desc 'version', 'Prints the version of the installed gaku gem (from which this command is being run).' def version() require 'rubygems'