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 +4 -4
- data/README.md +6 -0
- data/lib/rspec/parts/railtie.rb +7 -0
- data/lib/rspec/parts/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 783ffd233ccc69bd9aba8b23dc20a118576eaefe
|
4
|
+
data.tar.gz: 79a94a9a640063b1ff4420a4d10dbfc82095b69b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/rspec/parts/railtie.rb
CHANGED
@@ -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
|
data/lib/rspec/parts/version.rb
CHANGED