minitest-sprint 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dac4be94f52606b2b9b7525fd720a79944af2daf
4
+ data.tar.gz: 7dd38463d9b03efedf75c82a37b0d8158b33d52b
5
+ SHA512:
6
+ metadata.gz: 4c367395bda1d3cc9c33ffdffc79ca13d3418aff5743db650244d2aec69376463091debbbcda3b6c597654347c0aaae315447655e715db6345e3fb6d36387992
7
+ data.tar.gz: 735acfe4195ab89049c711eb08e2e4fa3c4fd4df1bf91ee0ee7fbbd9fb56c2bcfc407fbea36fe08551dc4099158495d5353ca72ec9ede6d083cf631cab27d87f
Binary file
Binary file
@@ -0,0 +1,26 @@
1
+ # -*- ruby -*-
2
+
3
+ require "autotest/restart"
4
+
5
+ Autotest.add_hook :initialize do |at|
6
+ at.testlib = "minitest/autorun"
7
+ at.add_exception "tmp"
8
+
9
+ # at.extra_files << "../some/external/dependency.rb"
10
+ #
11
+ # at.libs << ":../some/external"
12
+ #
13
+ # at.add_exception "vendor"
14
+ #
15
+ # at.add_mapping(/dependency.rb/) do |f, _|
16
+ # at.files_matching(/test_.*rb$/)
17
+ # end
18
+ #
19
+ # %w(TestA TestB).each do |klass|
20
+ # at.extra_class_map[klass] = "test/test_misc.rb"
21
+ # end
22
+ end
23
+
24
+ # Autotest.add_hook :run_command do |at|
25
+ # system "rake build"
26
+ # end
File without changes
@@ -0,0 +1,6 @@
1
+ === 1.0.0 / 2015-01-23
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
@@ -0,0 +1,12 @@
1
+ .autotest
2
+ History.rdoc
3
+ Manifest.txt
4
+ README.rdoc
5
+ Rakefile
6
+ bin/minitest
7
+ lib/minitest/binstub_reporter.rb
8
+ lib/minitest/rake_reporter.rb
9
+ lib/minitest/sprint.rb
10
+ lib/minitest/sprint_plugin.rb
11
+ lib/minitest/sprint_reporter.rb
12
+ test/test_minitest_sprint.rb
@@ -0,0 +1,51 @@
1
+ = minitest-sprint
2
+
3
+ home :: https://github.com/seattlerb/minitest-sprint
4
+ rdoc :: http://docs.seattlerb.org/minitest-sprint
5
+
6
+ == DESCRIPTION:
7
+
8
+ Runs (Get it? It's fast!) your tests and makes it easier to rerun individual
9
+ failures.
10
+
11
+ == FEATURES/PROBLEMS:
12
+
13
+ * TEENY implementation. Probably too TEENY.
14
+ * bin/minitest's implementation is currently tongue-in-cheek. PR's welcome.
15
+
16
+ == SYNOPSIS:
17
+
18
+ % minitest
19
+
20
+ == REQUIREMENTS:
21
+
22
+ * ruby
23
+
24
+ == INSTALL:
25
+
26
+ * sudo gem install minitest-sprint
27
+
28
+ == LICENSE:
29
+
30
+ (The MIT License)
31
+
32
+ Copyright (c) Ryan Davis, seattle.rb
33
+
34
+ Permission is hereby granted, free of charge, to any person obtaining
35
+ a copy of this software and associated documentation files (the
36
+ 'Software'), to deal in the Software without restriction, including
37
+ without limitation the rights to use, copy, modify, merge, publish,
38
+ distribute, sublicense, and/or sell copies of the Software, and to
39
+ permit persons to whom the Software is furnished to do so, subject to
40
+ the following conditions:
41
+
42
+ The above copyright notice and this permission notice shall be
43
+ included in all copies or substantial portions of the Software.
44
+
45
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
46
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
47
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
48
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
49
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
50
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
51
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,15 @@
1
+ # -*- ruby -*-
2
+
3
+ require "rubygems"
4
+ require "hoe"
5
+
6
+ Hoe.plugin :isolate
7
+ Hoe.plugin :seattlerb
8
+ Hoe.plugin :rdoc
9
+
10
+ Hoe.spec "minitest-sprint" do
11
+ developer "Ryan Davis", "ryand-ruby@zenspider.com"
12
+ license "MIT"
13
+ end
14
+
15
+ # vim: syntax=ruby
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/ruby -w
2
+
3
+ # yes, this is mostly tongue in cheek. If you want it to do more, improve it.
4
+
5
+ if ARGV.empty? then
6
+ exec "rake"
7
+ else
8
+ exec "rake N=\"#{ARGV.first}\" #{ARGV[1..-1].join " "}"
9
+ end
@@ -0,0 +1,11 @@
1
+ require "minitest/sprint_reporter"
2
+
3
+ module Minitest
4
+ class BinstubReporter < SprintReporter
5
+ def print_list
6
+ results.each do |result|
7
+ puts " minitest #{result.class}##{result.name}"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require "minitest/sprint_reporter"
2
+
3
+ module Minitest
4
+ class RakeReporter < SprintReporter
5
+ def print_list
6
+ results.each do |result|
7
+ puts " rake N=#{result.class}##{result.name}"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ class Minitest::Sprint
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,24 @@
1
+ require "minitest"
2
+
3
+ module Minitest
4
+ def self.plugin_sprint_options opts, options # :nodoc:
5
+ opts.on "--rake", "Report how to re-run failures with rake." do
6
+ options[:sprint] = :rake
7
+ end
8
+
9
+ opts.on "--binstub", "Report how to re-run failures with minitest." do
10
+ options[:sprint] = :binstub
11
+ end
12
+ end
13
+
14
+ def self.plugin_sprint_init options
15
+ case options[:sprint]
16
+ when :rake then
17
+ require "minitest/rake_reporter"
18
+ self.reporter << Minitest::RakeReporter.new
19
+ when :binstub then
20
+ require "minitest/binstub_reporter"
21
+ self.reporter << Minitest::BinstubReporter.new
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,23 @@
1
+ module Minitest
2
+ class SprintReporter < AbstractReporter
3
+ attr_accessor :results
4
+
5
+ def initialize
6
+ self.results = []
7
+ end
8
+
9
+ def record result
10
+ results << result unless result.passed? or result.skipped?
11
+ end
12
+
13
+ def report
14
+ return if results.empty?
15
+
16
+ puts
17
+ puts "Happy Happy Sprint List:"
18
+ puts
19
+ print_list
20
+ puts
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,22 @@
1
+ require "minitest/autorun"
2
+ require "minitest/sprint"
3
+
4
+ class TestMinitestSprint < Minitest::Test
5
+ def test_pass
6
+ assert true
7
+ end
8
+
9
+ def test_skip
10
+ skip "nope"
11
+ end
12
+
13
+ if ENV["BAD"] then # allows it to pass my CI but easy to demo
14
+ def test_fail
15
+ flunk "write tests or I will kneecap you"
16
+ end
17
+
18
+ def test_error
19
+ raise "nope"
20
+ end
21
+ end
22
+ end
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: minitest-sprint
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Ryan Davis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
+ ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
+ GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE
16
+ AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
+ JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
+ b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
19
+ taCPaLmfYIaFcHHCSY4hYDJijRQkLxPeB3xbOfzfLoBDbjvx5JxgJxUjmGa7xhcT
20
+ oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
21
+ GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
22
+ qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
+ gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
+ HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
25
+ AQAFoDJRokCQdxFfOrmsKX41KOFlU/zjrbDVM9hgB/Ur999M6OXGSi8FitXNtMwY
26
+ FVjsiAPeU7HaWVVcZkj6IhINelTkXsxgGz/qCzjHy3iUMuZWw36cS0fiWJ5rvH+e
27
+ hD7uXxJSFuyf1riDGI1aeWbQ74WMwvNstOxLUMiV5a1fzBhlxPqb537ubDjq/M/h
28
+ zPUFPVYeL5KjDHLCqI2FwIk2sEMOQgjpXHzl+3NlD2LUgUhHDMevmgVua0e2GT1B
29
+ xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
30
+ VpzF30vNaJK6ZT7xlIsIlwmH
31
+ -----END CERTIFICATE-----
32
+ date: 2015-02-04 00:00:00.000000000 Z
33
+ dependencies:
34
+ - !ruby/object:Gem::Dependency
35
+ name: minitest
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '5.5'
41
+ type: :development
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '5.5'
48
+ - !ruby/object:Gem::Dependency
49
+ name: rdoc
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '4.0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: hoe
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '3.13'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '3.13'
76
+ description: |-
77
+ Runs (Get it? It's fast!) your tests and makes it easier to rerun individual
78
+ failures.
79
+ email:
80
+ - ryand-ruby@zenspider.com
81
+ executables:
82
+ - minitest
83
+ extensions: []
84
+ extra_rdoc_files:
85
+ - History.rdoc
86
+ - Manifest.txt
87
+ - README.rdoc
88
+ files:
89
+ - .autotest
90
+ - .gemtest
91
+ - History.rdoc
92
+ - Manifest.txt
93
+ - README.rdoc
94
+ - Rakefile
95
+ - bin/minitest
96
+ - lib/minitest/binstub_reporter.rb
97
+ - lib/minitest/rake_reporter.rb
98
+ - lib/minitest/sprint.rb
99
+ - lib/minitest/sprint_plugin.rb
100
+ - lib/minitest/sprint_reporter.rb
101
+ - test/test_minitest_sprint.rb
102
+ homepage: https://github.com/seattlerb/minitest-sprint
103
+ licenses:
104
+ - MIT
105
+ metadata: {}
106
+ post_install_message:
107
+ rdoc_options:
108
+ - --main
109
+ - README.rdoc
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.4.5
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: Runs (Get it? It's fast!) your tests and makes it easier to rerun individual
128
+ failures.
129
+ test_files: []
@@ -0,0 +1 @@
1
+ 6E�la�����+