lib/soaspec/exe_helpers.rb in soaspec-0.0.40 vs lib/soaspec/exe_helpers.rb in soaspec-0.0.41

- old
+ new

@@ -32,9 +32,27 @@ puts "Created folder: #{folder}/" end end def rake_content + <<-RAKE +# The list of task for a Rake file can be seen with `rake -T` +require 'rspec/core/rake_task' # See See https://relishapp.com/rspec/rspec-core/docs/command-line/rake-task for details + +# This runs `rspec` command with the following options. Type `rake spec` to run this task +RSpec::Core::RakeTask.new(:spec) do |t| + t.pattern = "spec/*_spec.rb" # Run all specs in 'spec' folder ending in '_spec' + # Next line shows output on the screen, Junit xml report and an HTML report + t.rspec_opts = "--format documentation --format RspecJunitFormatter --out logs/spec.xml --format html --out logs/spec.html" + t.fail_on_error = false +end + +task :default => :spec # This runs the 'spec' task by default when no task is mentioned. E.g., if only `rake` is typed + + RAKE + end + + def rake__virtual_content <<-EOF # The list of task for a Rake file can be seen with `rake -T` require 'rspec/core/rake_task' # See See https://relishapp.com/rspec/rspec-core/docs/command-line/rake-task for details # This runs `rspec` command with the following options. Type `rake spec` to run this task \ No newline at end of file