rspec_chunked 0.2.0 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/Rakefile +4 -0
- data/lib/rspec_chunked.rb +1 -1
- data/lib/rspec_chunked/railtie.rb +1 -0
- data/lib/rspec_chunked/version.rb +1 -1
- data/lib/tasks/rspec_chunked_tasks.rake +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 269d7677063d252032ed8e26c4d0b469417ba5e2bab2cc868edc79176f8201f9
|
4
|
+
data.tar.gz: 2ee7a9c1e3b51809ac8f7e3312bf806acbebc049be0d21f80686636aa99a8c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a7d86038a73855d043f69a134aa11e7a5aebcff4ad88d4dd5cc39d8d269bef8dd64a9c1a85bccd7e765ed522aa10056400c0d5e0f362d6631093c302517ae6d
|
7
|
+
data.tar.gz: 8103b9cc56f2fb35674789dfae0d44c41553c22f511a44cbdd9ae325ab099143be811edcc99534ad9b674ffca179882c64bbe8bcf8893b2cd1cb232ca5b2fa57
|
data/README.md
CHANGED
@@ -16,9 +16,11 @@ If ordering is not enough, permits to balance manually by moving x percentage of
|
|
16
16
|
- Add manual balance
|
17
17
|
```ruby
|
18
18
|
# config/initializers/rspec_chunked.rb
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
if defined?(RspecChunked::ChunkedTests)
|
20
|
+
data = { 1 => { to: 2, percentage: 15 },
|
21
|
+
4 => { to: 3, percentage: 10 } }
|
22
|
+
RspecChunked::ChunkedTests.balance_settings = data
|
23
|
+
end
|
22
24
|
```
|
23
25
|
Balance tests by moving 15% tests files from group 1 into group 2 and moving 10% tests files from group 4 into group 3
|
24
26
|
|
data/Rakefile
CHANGED
data/lib/rspec_chunked.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
desc 'Run chunked rspec tests on specific qty, sample: CI_JOBS=3 CI_JOB=1 rake rspec_chunked'
|
4
|
-
task :
|
4
|
+
task rspec_chunked: :environment do
|
5
5
|
qty_jobs = (ENV['CI_JOBS'] || 3).to_i
|
6
6
|
job_number = (ENV['CI_JOB'] || 1).to_i
|
7
7
|
|