lib/knapsack_pro/config/env.rb in knapsack_pro-1.18.2 vs lib/knapsack_pro/config/env.rb in knapsack_pro-1.19.0
- old
+ new
@@ -165,9 +165,17 @@
def cucumber_queue_prefix
ENV.fetch('KNAPSACK_PRO_CUCUMBER_QUEUE_PREFIX', 'bundle exec')
end
+ def rspec_split_by_test_examples
+ ENV.fetch('KNAPSACK_PRO_RSPEC_SPLIT_BY_TEST_EXAMPLES', false)
+ end
+
+ def rspec_split_by_test_examples?
+ rspec_split_by_test_examples.to_s == 'true'
+ end
+
def test_suite_token
env_name = 'KNAPSACK_PRO_TEST_SUITE_TOKEN'
ENV[env_name] || raise("Missing environment variable #{env_name}. You should set environment variable like #{env_name}_RSPEC (note there is suffix _RSPEC at the end). knapsack_pro gem will set #{env_name} based on #{env_name}_RSPEC value. If you use other test runner than RSpec then use proper suffix.")
end