Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KNAPSACK_PRO_RSPEC_TEST_EXAMPLE_DETECTOR_PREFIX to customize prefix for generating test examples report when using RSpec split by test examples #118

Merged
merged 4 commits into from
Jul 17, 2020

Conversation

ArturT
Copy link
Member

@ArturT ArturT commented Jul 17, 2020

problem

When you use RSpec split by test examples

KNAPSACK_PRO_RSPEC_SPLIT_BY_TEST_EXAMPLES=true

https://knapsackpro.com/faq/question/how-to-split-slow-rspec-test-files-by-test-examples-by-individual-it

and you saw error like:

Don't know how to build task 'knapsack_pro:rspec_test_example_detector' (See the list of available tasks with `rake --tasks`)

context

knapsack_pro by default adds prefix bundle exec before the rake task (knapsack_pro:rspec_test_example_detector).
You can try run it without bundle exec prefix.

solution

Set KNAPSACK_PRO_RSPEC_TEST_EXAMPLE_DETECTOR_PREFIX="" to empty string to remove default prefix bundle exec. This should help run the task task properly.

@ArturT ArturT added the bug label Jul 17, 2020
@ArturT ArturT changed the title Add KNAPSACK_PRO_RSPEC_TEST_EXAMPLE_DETECTOR_PREFIX Fix bug: Add KNAPSACK_PRO_RSPEC_TEST_EXAMPLE_DETECTOR_PREFIX to customize prefix for generating test examples report when using RSpec split by test examples Jul 17, 2020
@ArturT ArturT changed the title Fix bug: Add KNAPSACK_PRO_RSPEC_TEST_EXAMPLE_DETECTOR_PREFIX to customize prefix for generating test examples report when using RSpec split by test examples Add KNAPSACK_PRO_RSPEC_TEST_EXAMPLE_DETECTOR_PREFIX to customize prefix for generating test examples report when using RSpec split by test examples Jul 17, 2020
@ArturT ArturT merged commit 3e12aa4 into master Jul 17, 2020
@ArturT ArturT deleted the split-by-examples-skip-bundle-exec branch July 17, 2020 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant