knapsack: Build fails with custom KNAPSACK_TEST_FILE_PATTERN

https://github.com/ArturT/knapsack#how-can-i-run-tests-from-multiple-directories using the approach described here bundle exec rake knapsack:rspec fails with require': cannot load such file -- spec_helper (LoadError) when KNAPSACK_TEST_FILE_PATTERN contains other directories.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Hi @arturopie

Is the value of KNAPSACK_TEST_DIR supposed to be used as the --default-path option?

Yes.

We exchanged emails before about knapsack_pro. The docs are here and you can set the test directory with your spec_helper.rb configuration with variable KNAPSACK_PRO_TEST_DIR=spec (note there is PRO in the name) https://github.com/KnapsackPro/knapsack_pro-ruby#how-can-i-run-tests-from-multiple-directories