-
Notifications
You must be signed in to change notification settings - Fork 10
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
Refactor queue rspec runner #56
Conversation
… failed tests. This can lead to canceled test execution in Queue Mode
@@ -27,6 +27,13 @@ BRANCH_NAME=fake-branch | |||
#export KNAPSACK_PRO_RSPEC_SPLIT_BY_TEST_EXAMPLES=true | |||
#export KNAPSACK_PRO_SLOW_TEST_FILE_PATTERN="spec/**{,/*/**}/*_spec.rb" | |||
|
|||
# In order to mock the Queue API responses, you need to change source code of the knapsack_pro gem: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose of this file was to help developer (me) to play with the knapsack_pro gem and a Rails app at the same time, so that I could see what will happen on the output, I could use a debugger etc.
We have isolated integration tests in PR KnapsackPro/knapsack_pro-ruby#237
The isolated integration tests are already covering all edge cases (except real API calls).
This bin script is in bin/edge_cases
directory. It is not executed as part of bin/knapsack_pro_all
bin script (see).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have much to say about this, but I hope that going forward we'll wipe this repo 🙂
We are moving in this direction but I think we still need it so that we could easily test a Rails app + Knapsack Pro integration on various CI providers. |
Co-authored-by: Riccardo <riccardo.odone@gmail.com>
story
https://trello.com/c/BcBhX2MW
related
RSpec::Core::Runner#run
multiple times in Queue Mode knapsack_pro-ruby#237How to mock the Queue API responses in the knapsack_pro gem
You can add the following code to the source code of the Knapsack Pro gem to mock the Queue API responses.
KnapsackPro/knapsack_pro-ruby@348f563