forked from salesdemocf/rails-app-with-knapsack_pro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use knapsack_pro 1.12.0 and add example of Queue Mode in Cucumber
- Loading branch information
Showing
6 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: ../knapsack_pro-ruby | ||
specs: | ||
knapsack_pro (1.11.0) | ||
knapsack_pro (1.12.0) | ||
rake | ||
|
||
GEM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
KNAPSACK_PRO_ENDPOINT=http:https://api.knapsackpro.test:3000 \ | ||
KNAPSACK_PRO_TEST_SUITE_TOKEN_CUCUMBER=79e4ffe972af086dfb70b90810622290 \ | ||
KNAPSACK_PRO_REPOSITORY_ADAPTER=git \ | ||
KNAPSACK_PRO_PROJECT_DIR=~/Documents/github/knapsack-pro/rails-app-with-knapsack_pro \ | ||
KNAPSACK_PRO_CI_NODE_TOTAL=${2:-2} \ | ||
KNAPSACK_PRO_CI_NODE_INDEX=${1:-0} \ | ||
bundle exec rake knapsack_pro:queue:cucumber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
KNAPSACK_PRO_ENDPOINT=http:https://api.knapsackpro.test:3000 \ | ||
KNAPSACK_PRO_TEST_SUITE_TOKEN_CUCUMBER=79e4ffe972af086dfb70b90810622290 \ | ||
KNAPSACK_PRO_REPOSITORY_ADAPTER=git \ | ||
KNAPSACK_PRO_PROJECT_DIR=~/Documents/github/knapsack-pro/rails-app-with-knapsack_pro \ | ||
KNAPSACK_PRO_CI_NODE_TOTAL=${2:-2} \ | ||
KNAPSACK_PRO_CI_NODE_INDEX=${1:-0} \ | ||
bundle exec rake "knapsack_pro:queue:cucumber[--format junit --out tmp/test-reports/cucumber/queue_mode/ --retry 5 --no-strict-flaky]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
require 'knapsack_pro' | ||
|
||
# CUSTOM_CONFIG_GOES_HERE | ||
KnapsackPro::Hooks::Queue.before_queue do |queue_id| | ||
print '-'*10 | ||
print 'Before Queue Hook - run before test suite' | ||
print '-'*10 | ||
end | ||
|
||
KnapsackPro::Hooks::Queue.after_subset_queue do |queue_id, subset_queue_id| | ||
print '-'*10 | ||
print 'After Subset Queue Hook - run after subset of test suite' | ||
print '-'*10 | ||
end | ||
|
||
KnapsackPro::Hooks::Queue.after_queue do |queue_id| | ||
print '-'*10 | ||
print 'After Queue Hook - run after test suite' | ||
print '-'*10 | ||
end | ||
|
||
KnapsackPro::Adapters::CucumberAdapter.bind |