test_diff 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +9 -0
- data/.rubocop.yml +5 -0
- data/.travis.yml +8 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +47 -0
- data/Rakefile +11 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/exe/test_diff +25 -0
- data/lib/test_diff/build_coverage.rb +112 -0
- data/lib/test_diff/run_diff.rb +73 -0
- data/lib/test_diff/storage.rb +65 -0
- data/lib/test_diff/track_build.rb +17 -0
- data/lib/test_diff/version.rb +4 -0
- data/lib/test_diff.rb +10 -0
- data/test_diff.gemspec +30 -0
- metadata +163 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ODFlYjM4ODBkMjczM2ExNzE2NjkxN2MwNGVkZTdkYWRjYmJhMWMyNg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZWU5ZDc4YzRhY2ExMTg1OWUxOGNlZDY5MjFlZmUxY2NjNjE1Y2U0NQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZDQwOTA5ZjgwNzRjODA2ZjcxNWRlNmU0MmFkNjQyM2NiNmFjY2VlNjcxMTli
|
10
|
+
YjRjYTc3ZjMxOGVlZmFhZDEyZDQ2MGFlMmFhNDIzYTBjZDgzY2NmMGYzOWYy
|
11
|
+
YzZlZmFkMjRkNTE5MjhkOGU0Y2QzM2NkZDVlZTBiNjQ5MDg1YjY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZjQwM2JiM2IzN2ZkNzVhMDY3YWZiZWY5OTY3M2ZjN2VlNDY1YTM0NzY3Mjc0
|
14
|
+
NWMzZGNlMDliMTIyMjFlYjgyMmFhMWQwY2UwNjg4YWY5ZDFlNmMwZWFhZTg5
|
15
|
+
NTM0Zjk0NmJiZTA5NjM5NzIyNjY5YzE4ZTM5NGE5OGE2NmE5ZDY=
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Grant Speelman
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# TestDiff
|
2
|
+
[![Build Status](https://travis-ci.org/grantspeelman/test_diff.svg?branch=master)](https://travis-ci.org/grantspeelman/test_diff)
|
3
|
+
|
4
|
+
Gem that attempts to find the tests that are required to run for the changes you have made
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'test_diff'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install test_diff
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
Building the test coverage index
|
25
|
+
|
26
|
+
$ bundle exec test_diff build_coverage spec spec/spec_helper.rb
|
27
|
+
$ bundle exec test_diff track_build
|
28
|
+
$ git add test_diff_coverage
|
29
|
+
$ git commit
|
30
|
+
|
31
|
+
Running a test difference
|
32
|
+
|
33
|
+
$ bundle exec test_diff run_spec_diff
|
34
|
+
|
35
|
+
## Development
|
36
|
+
|
37
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
38
|
+
|
39
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
40
|
+
|
41
|
+
## Contributing
|
42
|
+
|
43
|
+
1. Fork it ( https://github.com/[my-github-username]/test_diff/fork )
|
44
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
45
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
46
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
47
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'test_diff'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/exe/test_diff
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rubygems'
|
3
|
+
require 'thor'
|
4
|
+
|
5
|
+
require 'test_diff'
|
6
|
+
|
7
|
+
# thor class to allow execution
|
8
|
+
class TestDiffBuilder < Thor
|
9
|
+
desc 'build_coverage spec', 'runs the specs and generates reverse_coverage'
|
10
|
+
def build_coverage(spec_folder = 'spec', pre_load = nil, continue = nil)
|
11
|
+
TestDiff::BuildCoverage.new(spec_folder, pre_load, continue).run
|
12
|
+
end
|
13
|
+
|
14
|
+
desc 'track build', 'track this HEAD as the last test diff index'
|
15
|
+
def track_build(sha1 = nil)
|
16
|
+
TestDiff::TrackBuild.new(sha1).run
|
17
|
+
end
|
18
|
+
|
19
|
+
desc 'run_spec_diff spec master', 'runs the specs difference between the branches'
|
20
|
+
def run_spec_diff(spec_folder = 'spec', sha1 = nil, groups_of = nil, group = '0')
|
21
|
+
TestDiff::RunDiff.new(spec_folder, sha1, groups_of, group).run
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
TestDiffBuilder.start(ARGV)
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# TestDiff module
|
2
|
+
module TestDiff
|
3
|
+
# class used to build the coverage file
|
4
|
+
class BuildCoverage
|
5
|
+
attr_reader :spec_folder, :pre_load
|
6
|
+
|
7
|
+
def initialize(spec_folder, pre_load, continue)
|
8
|
+
@spec_folder = spec_folder
|
9
|
+
@pre_load = pre_load
|
10
|
+
@batch_queue = Queue.new
|
11
|
+
@storage = Storage.new
|
12
|
+
@continue = continue
|
13
|
+
if File.file?(spec_folder)
|
14
|
+
@batch_queue << spec_folder
|
15
|
+
else
|
16
|
+
Dir["#{spec_folder}/**/*_spec.rb"].each do |spec_name|
|
17
|
+
if !continue || @storage.get(spec_name).empty?
|
18
|
+
@batch_queue << spec_name
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def run
|
25
|
+
require 'coverage.so'
|
26
|
+
Coverage.start
|
27
|
+
require_pre_load
|
28
|
+
run_batch
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def require_pre_load
|
34
|
+
return unless pre_load
|
35
|
+
puts "pre_loading #{pre_load}"
|
36
|
+
require File.expand_path(pre_load)
|
37
|
+
end
|
38
|
+
|
39
|
+
def run_batch
|
40
|
+
puts "Running #{@batch_queue.size} tests"
|
41
|
+
require 'spec'
|
42
|
+
timing_thread = start_timing_thread(Time.now, @batch_queue.size)
|
43
|
+
start
|
44
|
+
timing_thread.join
|
45
|
+
puts 'Test done, compacting db'
|
46
|
+
@storage.compact if @storage.respond_to?(:compact)
|
47
|
+
end
|
48
|
+
|
49
|
+
def start_timing_thread(start_time, original_size)
|
50
|
+
Thread.new do
|
51
|
+
until @batch_queue.empty?
|
52
|
+
last_size = @batch_queue.size
|
53
|
+
completed = original_size - last_size
|
54
|
+
if completed > 0
|
55
|
+
time_per_spec = (Time.now - start_time).to_f / completed.to_f
|
56
|
+
est_time_left = time_per_spec * last_size
|
57
|
+
puts "specs left #{last_size}, est time_left: #{est_time_left.to_i}"
|
58
|
+
end
|
59
|
+
sleep(60)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def start
|
65
|
+
until @batch_queue.empty?
|
66
|
+
pid = start_process_fork(@batch_queue.pop(true))
|
67
|
+
pid, status = Process.waitpid2(pid)
|
68
|
+
fail 'Test Failed' unless status.success?
|
69
|
+
end
|
70
|
+
Coverage.result # disable coverage
|
71
|
+
end
|
72
|
+
|
73
|
+
def start_process_fork(main_spec_file)
|
74
|
+
Process.fork do
|
75
|
+
puts "running #{main_spec_file}"
|
76
|
+
ActiveRecord::Base.connection.reconnect! if defined?(ActiveRecord::Base)
|
77
|
+
Time.zone_default = (Time.zone = 'UTC') if Time.respond_to?(:zone_default) && Time.zone_default.nil?
|
78
|
+
# ARGV = ['-b',main_spec_file]
|
79
|
+
if run_tests(main_spec_file)
|
80
|
+
save_coverage_data(main_spec_file)
|
81
|
+
else
|
82
|
+
Coverage.result # disable coverage
|
83
|
+
exit!(false) unless @continue
|
84
|
+
end
|
85
|
+
# ::Spec::Runner::CommandLine.run(options)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def run_tests(main_spec_file)
|
90
|
+
options ||= begin
|
91
|
+
parser = ::Spec::Runner::OptionParser.new($stderr, $stdout)
|
92
|
+
parser.order!(['-b', main_spec_file])
|
93
|
+
parser.options
|
94
|
+
end
|
95
|
+
Spec::Runner.use options
|
96
|
+
options.run_examples
|
97
|
+
end
|
98
|
+
|
99
|
+
def save_coverage_data(main_spec_file)
|
100
|
+
data = {}
|
101
|
+
Coverage.result.each do |file_name, stats|
|
102
|
+
relative_file_name = file_name.gsub("#{FileUtils.pwd}/", '')
|
103
|
+
if file_name.include?(FileUtils.pwd)
|
104
|
+
data[relative_file_name] = stats.join(',')
|
105
|
+
end
|
106
|
+
end
|
107
|
+
YAML::ENGINE.yamler = 'psych'
|
108
|
+
@storage.set(main_spec_file, data)
|
109
|
+
@storage.flush if @storage.respond_to?(:flush)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# TestDiff module
|
2
|
+
module TestDiff
|
3
|
+
# Class used to calculate the tests than need to be run
|
4
|
+
class RunDiff
|
5
|
+
attr_reader :spec_folder, :sha1, :groups_of, :group
|
6
|
+
|
7
|
+
def initialize(spec_folder, sha1, groups_of, group)
|
8
|
+
@spec_folder = spec_folder
|
9
|
+
@sha1 = sha1 || File.read('test_diff_coverage/sha')
|
10
|
+
@specs_to_run = []
|
11
|
+
@storage = Storage.new
|
12
|
+
@groups_of = groups_of
|
13
|
+
@group = group
|
14
|
+
end
|
15
|
+
|
16
|
+
def run
|
17
|
+
add_changed_files
|
18
|
+
remove_tests_in_wrong_folder
|
19
|
+
select_test_group
|
20
|
+
run_test_group
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def run_test_group
|
26
|
+
if @specs_to_run.any?
|
27
|
+
puts "bundle exec spec -fo #{@specs_to_run.join(' ')}"
|
28
|
+
exec "bundle exec spec -fo #{@specs_to_run.join(' ')}"
|
29
|
+
else
|
30
|
+
puts 'no specs found to run'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def select_test_group
|
35
|
+
return unless groups_of
|
36
|
+
groups_size = (@specs_to_run.length / groups_of.to_f).ceil
|
37
|
+
@specs_to_run = @specs_to_run.slice(group.to_i * groups_size, groups_size)
|
38
|
+
end
|
39
|
+
|
40
|
+
def remove_tests_in_wrong_folder
|
41
|
+
@specs_to_run.delete_if do |s|
|
42
|
+
!s.start_with?("#{spec_folder}/")
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def add_changed_files
|
47
|
+
cmd = "git diff --name-only #{sha1} HEAD"
|
48
|
+
`#{cmd}`.split("\n").each do |file_name|
|
49
|
+
if file_name.end_with?('spec.rb') || file_name.end_with?('test.rb')
|
50
|
+
@specs_to_run << file_name
|
51
|
+
elsif !file_name.start_with?(@storage.folder)
|
52
|
+
_add_calculated_tests(file_name)
|
53
|
+
_add_rails_view_spec(file_name)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
@specs_to_run.flatten!
|
58
|
+
@specs_to_run.sort!
|
59
|
+
end
|
60
|
+
|
61
|
+
def _add_calculated_tests(file_name)
|
62
|
+
@specs_to_run << @storage.find_for(file_name)
|
63
|
+
end
|
64
|
+
|
65
|
+
def _add_rails_view_spec(file_name)
|
66
|
+
# try and find a matching view spec
|
67
|
+
return unless file_name.include?('app/views')
|
68
|
+
view_spec_name = file_name.gsub('app/views', "#{spec_folder}/views").gsub('.erb', '.erb_spec.rb')
|
69
|
+
return unless File.exist?(view_spec_name)
|
70
|
+
@specs_to_run << view_spec_name
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'yaml/store'
|
2
|
+
# TestDiff module
|
3
|
+
module TestDiff
|
4
|
+
# class used to build the coverage file
|
5
|
+
class Storage
|
6
|
+
attr_reader :folder
|
7
|
+
|
8
|
+
def initialize(folder = 'test_diff_coverage')
|
9
|
+
@folder = folder
|
10
|
+
end
|
11
|
+
|
12
|
+
def set(file, coverage_data)
|
13
|
+
fail 'Data must be a Hash' unless coverage_data.is_a?(Hash)
|
14
|
+
get_store(file).transaction do |store|
|
15
|
+
store.roots.each do |key|
|
16
|
+
store.delete(key)
|
17
|
+
end
|
18
|
+
coverage_data.keys.sort.each do |key|
|
19
|
+
store[key] = coverage_data[key]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def get(file)
|
25
|
+
get_store(file).transaction(true) do |store|
|
26
|
+
coverage_data = {}
|
27
|
+
store.roots.each do |key|
|
28
|
+
coverage_data[key] = store[key]
|
29
|
+
end
|
30
|
+
coverage_data
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def find_for(file)
|
35
|
+
results = []
|
36
|
+
Dir["#{@folder}/**/*.yml"].each do |storage_file|
|
37
|
+
find_for_storage_file(results, storage_file, file)
|
38
|
+
end
|
39
|
+
results
|
40
|
+
end
|
41
|
+
|
42
|
+
def clear
|
43
|
+
Dir["#{@folder}/**/*.yml"].each do |storage_file|
|
44
|
+
File.delete(storage_file)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
private
|
49
|
+
|
50
|
+
def find_for_storage_file(results, storage_file, file)
|
51
|
+
YAML::Store.new(storage_file).transaction(true) do |store|
|
52
|
+
unless store[file].to_s.split(',').delete_if { |s| s == '' || s == '0' }.empty?
|
53
|
+
results << storage_file.gsub('.yml', '').gsub("#{@folder}/", '')
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def get_store(file)
|
59
|
+
dir = File.dirname("#{@folder}/#{file}")
|
60
|
+
filename = File.basename(file) + '.yml'
|
61
|
+
FileUtils.mkdir_p(dir)
|
62
|
+
YAML::Store.new "#{dir}/#{filename}"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'git'
|
2
|
+
|
3
|
+
# TestDiff module
|
4
|
+
module TestDiff
|
5
|
+
# Class used to calculate the tests than need to be run
|
6
|
+
class TrackBuild
|
7
|
+
def initialize(sha)
|
8
|
+
@sha = sha
|
9
|
+
end
|
10
|
+
|
11
|
+
def run
|
12
|
+
git = Git.open('.')
|
13
|
+
sha = git.object(@sha || 'HEAD').sha
|
14
|
+
File.open('test_diff_coverage/sha', 'w+') { |f| f << sha }
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/test_diff.rb
ADDED
data/test_diff.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'test_diff/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'test_diff'
|
8
|
+
spec.version = TestDiff::VERSION
|
9
|
+
spec.authors = ['Grant Speelman']
|
10
|
+
spec.email = ['grant.speelman@ubxd.com']
|
11
|
+
|
12
|
+
spec.summary = 'Gem that attempts to find the tests that are required to run for the changes you have made.'
|
13
|
+
spec.description = 'Gem that attempts to find the tests that are required to run for the changes you have made.'
|
14
|
+
spec.homepage = 'https://github.com/grantspeelman/test_diff'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(/^(test|spec|features)\//) }
|
18
|
+
spec.bindir = 'exe'
|
19
|
+
spec.executables = spec.files.grep(/^exe\//) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
spec.add_dependency 'thor'
|
23
|
+
spec.add_dependency 'git'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'rubocop'
|
26
|
+
spec.add_development_dependency 'minitest', '>= 0.8.0'
|
27
|
+
spec.add_development_dependency 'minitest-reporters'
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.6'
|
29
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: test_diff
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Grant Speelman
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: git
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.8.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.8.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-reporters
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.6'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.6'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '10.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '10.0'
|
111
|
+
description: Gem that attempts to find the tests that are required to run for the
|
112
|
+
changes you have made.
|
113
|
+
email:
|
114
|
+
- grant.speelman@ubxd.com
|
115
|
+
executables:
|
116
|
+
- test_diff
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- .gitignore
|
121
|
+
- .rubocop.yml
|
122
|
+
- .travis.yml
|
123
|
+
- CODE_OF_CONDUCT.md
|
124
|
+
- Gemfile
|
125
|
+
- LICENSE.txt
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- bin/console
|
129
|
+
- bin/setup
|
130
|
+
- exe/test_diff
|
131
|
+
- lib/test_diff.rb
|
132
|
+
- lib/test_diff/build_coverage.rb
|
133
|
+
- lib/test_diff/run_diff.rb
|
134
|
+
- lib/test_diff/storage.rb
|
135
|
+
- lib/test_diff/track_build.rb
|
136
|
+
- lib/test_diff/version.rb
|
137
|
+
- test_diff.gemspec
|
138
|
+
homepage: https://github.com/grantspeelman/test_diff
|
139
|
+
licenses:
|
140
|
+
- MIT
|
141
|
+
metadata: {}
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options: []
|
144
|
+
require_paths:
|
145
|
+
- lib
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ! '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ! '>='
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 2.4.6
|
159
|
+
signing_key:
|
160
|
+
specification_version: 4
|
161
|
+
summary: Gem that attempts to find the tests that are required to run for the changes
|
162
|
+
you have made.
|
163
|
+
test_files: []
|