Sha256: 1e8b7fe3e675db1b7a26325f7ca23db85a72b133f4eada4ec420c632a65a4ba8

Contents?: true

Size: 555 Bytes

Versions: 12

Compression:

Stored size: 555 Bytes

Contents

require 'knapsack_pro'

namespace :knapsack_pro do
  task :rspec, [:rspec_args] do |_, args|
    KnapsackPro::Runners::RSpecRunner.run(args[:rspec_args])
  end

  desc "Generate JSON report for test suite based on default test pattern or based on defined pattern with ENV vars"
  task :rspec_test_example_detector do
    # ignore the `SPEC_OPTS` options to not affect RSpec execution within this rake task
    ENV.delete('SPEC_OPTS')

    detector = KnapsackPro::TestCaseDetectors::RSpecTestExampleDetector.new
    detector.generate_json_report
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
knapsack_pro-5.5.0 lib/tasks/rspec.rake
knapsack_pro-5.4.1 lib/tasks/rspec.rake
knapsack_pro-5.4.0 lib/tasks/rspec.rake
knapsack_pro-5.3.5 lib/tasks/rspec.rake
knapsack_pro-5.3.4 lib/tasks/rspec.rake
knapsack_pro-5.3.3 lib/tasks/rspec.rake
knapsack_pro-5.3.2 lib/tasks/rspec.rake
knapsack_pro-5.3.1 lib/tasks/rspec.rake
knapsack_pro-5.3.0 lib/tasks/rspec.rake
knapsack_pro-5.2.1 lib/tasks/rspec.rake
knapsack_pro-5.2.0 lib/tasks/rspec.rake
knapsack_pro-5.1.2 lib/tasks/rspec.rake