rspec-parts 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f788f7a01f3ab81928b220c846faba04d6eef22d
4
- data.tar.gz: d199f980e88d5947b5b16225b3d33d64bcc8199d
3
+ metadata.gz: 783ffd233ccc69bd9aba8b23dc20a118576eaefe
4
+ data.tar.gz: 79a94a9a640063b1ff4420a4d10dbfc82095b69b
5
5
  SHA512:
6
- metadata.gz: 59e039e8615126551bd499a7b7f5596676fe3369c38ffb73dfde9a9ea41707dd21a7a1127329b3fa82c356f489a680d04177dbb50c6679b528048accad041260
7
- data.tar.gz: d44b75252f9098385f6954529b338cbf0c8c80a18ca7414aa87934f23d066466ff930d5f60a42053c7c27290db949e311ffe2197438bd4c023abb73519831b9c
6
+ metadata.gz: cdfd0b90b4712f4120e5c217d578951b3a0a6fb1384faab4e50c15c0870844e10ce4bf77c2d0e04371b152c3a09e11f9565cc36c429b10ad20567d4d9f7d9131
7
+ data.tar.gz: 7f038ba021d04cd52f30e393d37eefdf21dca9661d5197c9b305b9d53b416c09e9085f152bcfecbaa460a8db3b55f98b21c1dc756805fad882651a957b0cda46
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Rspec::Parts
2
2
 
3
+ [![Build Status](https://travis-ci.org/hjhart/rspec-parts.svg?branch=master)](https://travis-ci.org/hjhart/rspec-parts)
4
+
3
5
  ### Speed up your builds, fully utilize your Travis Pro capacity!
4
6
 
5
7
  When using Travis Pro we had five available executors, of which only two were being used, one by [Jasmine][jasmine] and one by [Rspec][rspec].
@@ -35,17 +37,21 @@ This will divide your specs into four equal parts, then run the first part of th
35
37
 
36
38
  ## Configuration
37
39
 
40
+ In order to properly configure rspec-parts, you must create the file `spec/support/rspec-parts.rb`, and configure as below:
41
+
38
42
  The following are available for configuration:
39
43
 
40
44
  Rspec::Parts.configure do |config|
41
45
  config.file_list_exclusions = ['spec_helper.rb', 'spec/controllers/jasmine_fixture_generation/*.rb']
42
46
  config.spec_directory_glob = 'test/*'
43
47
  config.rspec_opts = '--profile --tag ~nginx --format progress'
48
+ config.default_number_of_parts = 2
44
49
  end
45
50
 
46
51
  * `file_list_exclusions` will exclude the following files or directories from running.
47
52
  * `spec_directory_glob` allows you to choose which directories to include
48
53
  * `rspec_opts` allows you to tack on rspec options to the `rspec` command.
54
+ * `default_number_of_parts` defaults to 4. This gets overridden by the second parameter in the command `rake spec:part[1,4]` but can be useful if you want to run a shortened version of the command: `rake spec:part[1]`
49
55
 
50
56
  See the `rspec_parts.rake` file for the usage of configuration variables.
51
57
 
@@ -6,6 +6,13 @@ module Rspec
6
6
  rake_tasks do
7
7
  load 'tasks/rspec_parts.rake'
8
8
  end
9
+
10
+ config.before_configuration do
11
+ configuration = ::Rails.root.join('spec', 'support', 'rspec-parts.rb')
12
+ if File.exists?(configuration)
13
+ require configuration
14
+ end
15
+ end
9
16
  end
10
17
  end
11
18
  end
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module Parts
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-parts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Hart