Allow accepting file containing test files to run - add support for env var KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE#129
Conversation
|
@Neal910 Can you give me access to push to your branch on the forked repo https://github.blog/2016-09-07-improving-collaboration-with-forks/ |
ArturT
left a comment
There was a problem hiding this comment.
It would be also good to add info in README about this new feature KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE and how it works.
|
@Neal910 Will you be able to apply improvements from my comments? If not then I can handle it in the upcoming days. I could add this to my TODO list (I already got access to your repo so I could push commits with improvements). |
This reverts commit 7732067.
|
I've updated PR title and description so when someone visits this PR from changelog file it will be easier to understand what's the new feature. @Neal910 Could you update the CHANGELOG.md file and add 2.7.0 version header with link to this PR. Thanks. |
Add more explanation why we added KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE and mark it with `KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE`
add new lines
…ept-rspec-list-file
remove new line
|
Sure, let 's merge it. Thanks a lot for your quick response. |
|
Related PR in crystalball gem repo pluff/crystalball#129 for issue pluff/crystalball#117 |
|
It's weird, when I test it with my real data, I always got a comma added in each of the test file as following: I am sure that in my source file, it doesn't have the comma. Not sure where it's been added. |
|
@Neal910 I tested this feature on my rails app and it works fine. Are you sure your source file has no commas? |
|
oh, I think something is really wrong in my env, this is not the issue of KnapsackPro. Sorry to bother you. |
|
@Neal910 If you need to debug the source code of knapsack_pro gem you can add in Gemfile: if you debug on CIand you can provide your own if you debug in developmentGemfile: Then you can plug into the source code of knapsack_pro with pry gem https://github.com/pry/pry |
|
Tested on our CI, all good. Thanks for your help. |
changes
This adds a new feature. You can set env var
KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILEto a path to the source file with a list of test files to be run. The source file should contain test files in a new line each.More can be found in the README that was updated in this PR.
https://github.com/KnapsackPro/knapsack_pro-ruby#how-to-run-a-specific-list-of-test-files-or-only-some-tests-from-test-file
related issue
to resolve the issue #128