diff --git a/features/support/knapsack_pro.rb b/features/support/knapsack_pro.rb index 7317fe7c..5dd061ed 100644 --- a/features/support/knapsack_pro.rb +++ b/features/support/knapsack_pro.rb @@ -3,19 +3,25 @@ # CUSTOM_CONFIG_GOES_HERE KnapsackPro::Hooks::Queue.before_queue do |queue_id| print '-'*10 - print 'Before Queue Hook - run before test suite' + print 'Before Queue Hook - run before the test suite' + print '-'*10 +end + +KnapsackPro::Hooks::Queue.before_subset_queue do |queue_id, subset_queue_id| + print '-'*10 + print 'Before Subset Queue Hook - run before the next subset of tests' 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 'After Subset Queue Hook - run after the previous subset of tests' print '-'*10 end KnapsackPro::Hooks::Queue.after_queue do |queue_id| print '-'*10 - print 'After Queue Hook - run after test suite' + print 'After Queue Hook - run after the test suite' print '-'*10 end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6117115a..6743e1e6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -34,9 +34,8 @@ # CUSTOM_CONFIG_GOES_HERE KnapsackPro::Hooks::Queue.before_queue do |queue_id| print '-'*10 - print 'Before Queue Hook - run before test suite' + print 'Before Queue Hook - run before the test suite' print '-'*10 - puts SimpleCov.command_name("rspec_ci_node_#{KnapsackPro::Config::Env.ci_node_index}") end @@ -46,9 +45,8 @@ KnapsackPro::Hooks::Queue.before_subset_queue do |queue_id, subset_queue_id| print '-'*10 - print 'Before Subset Queue Hook - run before the subset of the test suite' + print 'Before Subset Queue Hook - run before the next subset of tests' print '-'*10 - puts end KnapsackPro::Hooks::Queue.before_subset_queue do |queue_id, subset_queue_id| puts '2nd KnapsackPro::Hooks::Queue.before_subset_queue' @@ -56,9 +54,8 @@ KnapsackPro::Hooks::Queue.after_subset_queue do |queue_id, subset_queue_id| print '-'*10 - print 'After Subset Queue Hook - run after the subset of the test suite' + print 'After Subset Queue Hook - run after the previous subset of tests' print '-'*10 - puts end KnapsackPro::Hooks::Queue.after_subset_queue do |queue_id, subset_queue_id| puts '2nd KnapsackPro::Hooks::Queue.after_subset_queue' @@ -66,9 +63,8 @@ KnapsackPro::Hooks::Queue.after_queue do |queue_id| print '-'*10 - print 'After Queue Hook - run after test suite' + print 'After Queue Hook - run after the test suite' print '-'*10 - puts end KnapsackPro::Hooks::Queue.after_queue do |queue_id| puts '2nd KnapsackPro::Hooks::Queue.after_queue' diff --git a/test/test_helper.rb b/test/test_helper.rb index a3738763..d4cf4ff7 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -8,19 +8,25 @@ # CUSTOM_CONFIG_GOES_HERE KnapsackPro::Hooks::Queue.before_queue do |queue_id| print '-'*10 - print 'Before Queue Hook - run before test suite' + print 'Before Queue Hook - run before the test suite' + print '-'*10 +end + +KnapsackPro::Hooks::Queue.before_subset_queue do |queue_id, subset_queue_id| + print '-'*10 + print 'Before Subset Queue Hook - run before the next subset of tests' 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 'After Subset Queue Hook - run after the previous subset of tests' print '-'*10 end KnapsackPro::Hooks::Queue.after_queue do |queue_id| print '-'*10 - print 'After Queue Hook - run after test suite' + print 'After Queue Hook - run after the test suite' print '-'*10 end