rspec_n 1.2.1 → 1.2.2
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 +4 -4
- data/.rubocop.yml +3 -0
- data/.travis.yml +9 -2
- data/CHANGELOG.md +14 -7
- data/Gemfile +0 -2
- data/README.md +10 -2
- data/lib/rspec_n/input.rb +6 -1
- data/lib/rspec_n/version.rb +1 -1
- data/rspec_n.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d086a277cdeda572b3358f254048ed4e7efa7028
|
4
|
+
data.tar.gz: b17c3463cece7279db187d9469c3ec280efe605b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3717ceab5cd0fe798eddacebcfc66ad1ceccad082bec1c15f0843ced97179df37ceff80d24c8ff0fc47b2079408d5ec02eebbae41746fe044212e35dc8a4c9e7
|
7
|
+
data.tar.gz: 2f2b6d24ee1e683dd312554560e0c1af09aae7da2f3dd81741fa24ea939b66c66792720463d6fd0517c4ac8b9ac1c8c4446c2b741c4828ab2496674f3516ec31
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -3,5 +3,12 @@ sudo: false
|
|
3
3
|
language: ruby
|
4
4
|
cache: bundler
|
5
5
|
rvm:
|
6
|
-
- 2.
|
7
|
-
|
6
|
+
- 2.3.8
|
7
|
+
- 2.4.5
|
8
|
+
- 2.5.5
|
9
|
+
- 2.6.3
|
10
|
+
before_install: gem install bundler -v 2.0.2
|
11
|
+
notifications:
|
12
|
+
email:
|
13
|
+
on_success: never # default: change
|
14
|
+
on_failure: never # default: always
|
data/CHANGELOG.md
CHANGED
@@ -1,22 +1,29 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## Next Release
|
4
|
+
|
5
|
+
1. (New) Add Gemfile usage instructions to the README. ([Issue #36](https://github.com/roberts1000/rspec_n/issues/36))
|
6
|
+
1. (New) Remove locking to a specify version of Ruby in development. ([Issue #41](https://github.com/roberts1000/rspec_n/issues/41))
|
7
|
+
1. (New) Use pry 0.12.x for development. ([Issue #43](https://github.com/roberts1000/rspec_n/issues/43))
|
8
|
+
1. (New) Stop `--order rand` from being added to the final command when a custom order is specified. ([Issue #38](https://github.com/roberts1000/rspec_n/issues/38))
|
9
|
+
|
3
10
|
## 1.2.1 (Mar 06, 2019)
|
4
11
|
|
5
|
-
1. (Fix) Make `-v` and `--version` work again.
|
12
|
+
1. (Fix) Make `-v` and `--version` work again. ([Issue #30](https://github.com/roberts1000/rspec_n/issues/30))
|
6
13
|
|
7
14
|
## 1.2.0 (Mar 03, 2019)
|
8
15
|
|
9
|
-
1. (New) Write the command that was used to run rspec_n to the output files.
|
16
|
+
1. (New) Write the command that was used to run rspec_n to the output files. ([Issue #26](https://github.com/roberts1000/rspec_n/issues/26))
|
10
17
|
|
11
18
|
## 1.1.0 (Mar 03, 2019)
|
12
19
|
|
13
|
-
1. (New) Add **Result Counts** column which shows the result counts for each run (e.g. "400 examples, 2 failures, 3 pending"
|
14
|
-
1. (New) Allow an optional path argument, that is passed to RSpec, to target specs (e.g. `rspec_n 3 spec/features/example_spec.rb`, `rspec_n spec/features/example_spec.rb:5`, `rspec_n spec/features 4`).
|
15
|
-
1. (New) Rename the `Result Counts` column to `Results` and remove the existing `Results` column.
|
20
|
+
1. (New) Add **Result Counts** column which shows the result counts for each run (e.g. "400 examples, 2 failures, 3 pending"). ([Issue #19](https://github.com/roberts1000/rspec_n/issues/19))
|
21
|
+
1. (New) Allow an optional path argument, that is passed to RSpec, to target specs (e.g. `rspec_n 3 spec/features/example_spec.rb`, `rspec_n spec/features/example_spec.rb:5`, `rspec_n spec/features 4`). ([Issue #20](https://github.com/roberts1000/rspec_n/issues/20))
|
22
|
+
1. (New) Rename the `Result Counts` column to `Results` and remove the existing `Results` column. ([Issue #23](https://github.com/roberts1000/rspec_n/issues/23))
|
16
23
|
|
17
24
|
## 1.0.0 (Feb 18, 2019)
|
18
25
|
|
19
26
|
1. (New) Add initial core logic. ([Issue #1](https://github.com/roberts1000/rspec_n/issues/1))
|
20
27
|
1. (New) Add initial CLI. ([Issue #4](https://github.com/roberts1000/rspec_n/issues/4))
|
21
|
-
1. (New) Write results of each iteration to a separate file.
|
22
|
-
1. (New) Add `-s` option to stop on first failure.
|
28
|
+
1. (New) Write results of each iteration to a separate file. ([Issue #5](https://github.com/roberts1000/rspec_n/issues/5))
|
29
|
+
1. (New) Add `-s` option to stop on first failure. ([Issue #6](https://github.com/roberts1000/rspec_n/issues/6))
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -4,13 +4,13 @@ rspec_n is a Ruby gem that makes it easy to run a project's RSpec test suite N t
|
|
4
4
|
|
5
5
|

|
6
6
|
|
7
|
-
## Version
|
7
|
+
## Version Strategy
|
8
8
|
|
9
9
|
Releases are versioned using [semver 2.0.0](https://semver.org/spec/v2.0.0.html).
|
10
10
|
|
11
11
|
## Supported Rubies
|
12
12
|
|
13
|
-
Ruby 2.3.
|
13
|
+
Ruby 2.3.0+ is supported.
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
@@ -20,6 +20,14 @@ Install by executing
|
|
20
20
|
|
21
21
|
The gem will install an exectuable called `rspec_n` on your system. You may also want to add `rspec_n_iteration.*` to your `.gitignore` to exclude the output generated by rspec_n from your project's repo.
|
22
22
|
|
23
|
+
#### Using in a Gemfile
|
24
|
+
|
25
|
+
If you want to add rspec_n to your Gemfile, make sure you use the `require: false` option so rspec_n files aren't loaded into your application. rspec_n doesn't provide any runtime benefit to an app and requiring it will add unnecessary code to your project. Also, rspec_n is designed as a standalone commandline tool and isn't tested for compatibility inside other apps.
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
gem 'rspec_n', require: false
|
29
|
+
```
|
30
|
+
|
23
31
|
## Usage
|
24
32
|
|
25
33
|
The simplest way to run rspec_n is to give it a positive integer which tells it how many times to run RSpec:
|
data/lib/rspec_n/input.rb
CHANGED
@@ -44,7 +44,8 @@ module RspecN
|
|
44
44
|
def determine_command
|
45
45
|
command = @options.fetch(:command, guessed_command)
|
46
46
|
command += " " + @spec_path if @spec_path
|
47
|
-
command
|
47
|
+
command += " --order " + @order if should_append_order?(command)
|
48
|
+
command
|
48
49
|
end
|
49
50
|
|
50
51
|
def guessed_command
|
@@ -63,5 +64,9 @@ module RspecN
|
|
63
64
|
app_file_name = "config/application.rb"
|
64
65
|
File.file?(app_file_name) && File.readlines(app_file_name).grep(/Rails::Application/).any?
|
65
66
|
end
|
67
|
+
|
68
|
+
def should_append_order?(command)
|
69
|
+
command.match(/--order/).nil?
|
70
|
+
end
|
66
71
|
end
|
67
72
|
end
|
data/lib/rspec_n/version.rb
CHANGED
data/rspec_n.gemspec
CHANGED
@@ -33,10 +33,10 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.bindir = "exe"
|
34
34
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
35
|
spec.require_paths = ["lib"]
|
36
|
-
spec.required_ruby_version = '>= 2.3.
|
36
|
+
spec.required_ruby_version = '>= 2.3.0'
|
37
37
|
|
38
38
|
spec.add_development_dependency "bundler", "~> 2.0"
|
39
|
-
spec.add_development_dependency "pry", "~> 0.
|
39
|
+
spec.add_development_dependency "pry", "~> 0.12.0"
|
40
40
|
spec.add_development_dependency "rake", "~> 12.0"
|
41
41
|
spec.add_development_dependency "rspec", "~> 3.0"
|
42
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- roberts1000
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.12.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.12.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 2.3.
|
145
|
+
version: 2.3.0
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - ">="
|