Rakefile in vagrant-ovirt4-1.2.0 vs Rakefile in vagrant-ovirt4-1.2.1
- old
+ new
@@ -1,8 +1,9 @@
require 'rubygems'
require 'bundler/setup'
require 'rspec/core/rake_task'
+require 'kitchen/rake_tasks'
# Immediately sync all stdout so that tools like buildbot can
# immediately load in the output.
$stdout.sync = true
$stderr.sync = true
@@ -16,7 +17,17 @@
# Install the `spec` task so that we can run tests.
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = "--order defined"
end
-# Default task is to run the unit tests
-task :default => :spec
+
+# Default task is to run all tests
+namespace :test do
+ task :all do
+ RSpec::Core::RakeTask.new(:spec)
+ Rake::Task["spec"].execute
+ Kitchen::RakeTasks.new
+ Rake::Task['kitchen:all'].invoke
+ end
+end
+
+task :default => 'test:all'