semaphore_test_boosters 2.6.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 502cd665598a91e82706246e1f4ce9ec49f74d42
4
- data.tar.gz: d30decefa24819ecaf7b9e81496bb9f67fb5255a
3
+ metadata.gz: 9539e2ccd028897753026672723046e6741cb3d2
4
+ data.tar.gz: 7a1a80632401a154f602e10909292f2f9284b608
5
5
  SHA512:
6
- metadata.gz: 8d5625893720c3d00920a712ae5ea306cb179043c52c692fdb2d19dc4d69646fff8243e7a84f2e0acb7ef3648f617a6c72fddd7b3d2e69fb034805cfdb8b4944
7
- data.tar.gz: 6e57270af8ed571fd2350ea023e7bffd13aa5fa75109014e987080c949865d18afa6889a740c3b833f852516af7d6097962a8ffa1585e1405e0a14ec160afa80
6
+ metadata.gz: bcbffca8de73d690246389ec3107a85999a3fe831d2889026074bfc4bd3ee90bc1267f0ca6337f68d6b7190c3791aeb39f07d8230386b9cf8a7404a9096565d1
7
+ data.tar.gz: 208e3cb145617be8dde5e7e4f4119cb8ac367a9ee5a7080f3299410c4ec57f4f1196ad0ce03a926c219d9507548d2e711914c0ffbdc5c2ad2d4b6bc7e1f0a664
@@ -2,9 +2,10 @@ module TestBoosters
2
2
  module Boosters
3
3
  class Base
4
4
 
5
- def initialize(file_pattern, split_configuration_path, command)
5
+ def initialize(file_pattern, exclude_pattern, split_configuration_path, command)
6
6
  @command = command
7
7
  @file_pattern = file_pattern
8
+ @exclude_pattern = exclude_pattern
8
9
  @split_configuration_path = split_configuration_path
9
10
  end
10
11
 
@@ -59,6 +60,7 @@ module TestBoosters
59
60
  def distribution
60
61
  @distribution ||= TestBoosters::Files::Distributor.new(@split_configuration_path,
61
62
  @file_pattern,
63
+ @exclude_pattern,
62
64
  job_count)
63
65
  end
64
66
 
@@ -5,7 +5,7 @@ module TestBoosters
5
5
  FILE_PATTERN = "features/**/*.feature".freeze
6
6
 
7
7
  def initialize
8
- super(FILE_PATTERN, split_configuration_path, "bundle exec cucumber")
8
+ super(FILE_PATTERN, nil, split_configuration_path, "bundle exec cucumber")
9
9
  end
10
10
 
11
11
  def before_job
@@ -5,7 +5,7 @@ module TestBoosters
5
5
  FILE_PATTERN = "test/**/*_test.exs".freeze
6
6
 
7
7
  def initialize
8
- super(FILE_PATTERN, split_configuration_path, "mix test")
8
+ super(FILE_PATTERN, nil, split_configuration_path, "mix test")
9
9
  end
10
10
 
11
11
  def split_configuration_path
@@ -5,7 +5,7 @@ module TestBoosters
5
5
  FILE_PATTERN = "**/*/*_test.go".freeze
6
6
 
7
7
  def initialize
8
- super(FILE_PATTERN, split_configuration_path, "go test")
8
+ super(FILE_PATTERN, nil, split_configuration_path, "go test")
9
9
  end
10
10
 
11
11
  def split_configuration_path
@@ -5,7 +5,7 @@ module TestBoosters
5
5
  FILE_PATTERN = "test/**/*_test.rb".freeze
6
6
 
7
7
  def initialize
8
- super(FILE_PATTERN, split_configuration_path, command)
8
+ super(FILE_PATTERN, nil, split_configuration_path, command)
9
9
  end
10
10
 
11
11
  def command
@@ -2,7 +2,7 @@ module TestBoosters
2
2
  module Boosters
3
3
  class Rspec < Base
4
4
  def initialize
5
- super(file_pattern, split_configuration_path, command)
5
+ super(file_pattern, exclude_pattern, split_configuration_path, command)
6
6
  end
7
7
 
8
8
  def display_header
@@ -44,6 +44,10 @@ module TestBoosters
44
44
  def file_pattern
45
45
  ENV["TEST_BOOSTERS_RSPEC_TEST_FILE_PATTERN"] || "spec/**/*_spec.rb"
46
46
  end
47
+
48
+ def exclude_pattern
49
+ ENV["TEST_BOOSTERS_RSPEC_TEST_EXCLUDE_PATTERN"]
50
+ end
47
51
  end
48
52
  end
49
53
  end
@@ -6,9 +6,10 @@ module TestBoosters
6
6
  #
7
7
  class Distributor
8
8
 
9
- def initialize(split_configuration_path, file_pattern, job_count)
9
+ def initialize(split_configuration_path, file_pattern, exclude_pattern, job_count)
10
10
  @split_configuration_path = split_configuration_path
11
11
  @file_pattern = file_pattern
12
+ @exclude_pattern = exclude_pattern
12
13
  @job_count = job_count
13
14
  end
14
15
 
@@ -26,7 +27,11 @@ module TestBoosters
26
27
  end
27
28
 
28
29
  def all_files
29
- @all_files ||= Dir[@file_pattern].sort
30
+ @all_files ||= begin
31
+ files = Dir[@file_pattern].sort
32
+ files -= Dir[@exclude_pattern] if @exclude_pattern
33
+ files
34
+ end
30
35
  end
31
36
 
32
37
  private
@@ -1,3 +1,3 @@
1
1
  module TestBoosters
2
- VERSION = "2.6.0".freeze
2
+ VERSION = "2.7.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semaphore_test_boosters
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Developers at Rendered Text
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-05 00:00:00.000000000 Z
11
+ date: 2021-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semaphore_cucumber_booster_config