require "bundler/gem_tasks" require "rspec/core/rake_task" task :unitTest do RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = Dir.glob("spec/ruby/unit_test/") t.rspec_opts = "--no-drb -r rspec_junit_formatter --format RspecJunitFormatter -o testresults/RubyUnitTest.xml" Rake.application.options.trace = true end Rake::Task["spec"].execute end task :performanceTest do RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = Dir.glob("spec/ruby/performance_test/") t.rspec_opts = "--no-drb -r rspec_junit_formatter --format RspecJunitFormatter -o testresults/RubyPerformanceTest.xml" Rake.application.options.trace = true end Rake::Task["spec"].execute end task :functionalTest do RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = Dir.glob("spec/ruby/functional_test/") t.rspec_opts = "--no-drb -r rspec_junit_formatter --format RspecJunitFormatter -o testresults/RubyFunctionalTest.xml" Rake.application.options.trace = true end Rake::Task["spec"].execute end