lib/tasks/rspec.rake in knapsack_pro-5.1.1 vs lib/tasks/rspec.rake in knapsack_pro-5.1.2
- old
+ new
@@ -5,9 +5,12 @@
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