spec 5.3.3 → 5.3.4

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: 1862a5647d9edb8c300deb03b6bf21cb4d8d85e1
4
- data.tar.gz: 8184a4a78143f820d7132ea83f9d0186e332030f
3
+ metadata.gz: cacc9033bdfdc9762da751d196a82ab41acdee49
4
+ data.tar.gz: fa2a7681c5db146c3e55bc518220b99221b61e2e
5
5
  SHA512:
6
- metadata.gz: 6563324e7b8f500574e347eb5e8abb9a61a08d80d5b986435848af1a3792cd63344d503c6c63ad591433f1d3d478e9be6ca53514199b13b36a3022697677d3e3
7
- data.tar.gz: 2389dde6619ec0fd846ba0fe8e17e0f905e7d4be40b6f4f5198e06187b766f613727375aff3839a12472077b9524adf8fad708afd0a24a2a971f07966b396562
6
+ metadata.gz: 4fdec35a938d0bef92ee1afa85537f878a71dc670b1024d6c2e3ccdb91d5a36ffd597b672572c310c73c27aa7f668f7ce935f92b769e83022cdf95ebc9478fd7
7
+ data.tar.gz: 62b4d04004361590eea311dca20d3d10d04205a004dd5768cb4b4167a35b16478a83a234f027aaa92fc4e03c5b597e9e38827f35b92fd7bf6c2379130d352432
data/Rakefile CHANGED
@@ -11,7 +11,6 @@ Hoe.spec 'minitest' do
11
11
  self.testlib = :minitest
12
12
  end
13
13
 
14
-
15
14
  # from https://github.com/bootstraponline/gem_template
16
15
  # todo: publish gem_template as a gem
17
16
 
@@ -158,4 +157,14 @@ task :notes do
158
157
  end
159
158
 
160
159
  File.open('release_notes.md', 'w') { |f| f.write notes.to_s.strip }
161
- end
160
+ end
161
+
162
+ # Remove default minitest task
163
+ Rake::Task[:default].clear
164
+
165
+ desc 'Run tests in test_custom/'
166
+ task :test_custom do
167
+ sh "ruby #{File.join(Dir.pwd, 'test_custom', 'run.rb')}"
168
+ end
169
+
170
+ task :default => :test_custom
@@ -7,8 +7,8 @@ require "minitest/parallel"
7
7
  # :include: README.txt
8
8
 
9
9
  module Minitest
10
- VERSION = '5.3.3' # :nodoc:
11
- DATE = '2014-04-21' # :nodoc:
10
+ VERSION = '5.3.4' # :nodoc:
11
+ DATE = '2014-04-22' # :nodoc:
12
12
 
13
13
  @@installed_at_exit ||= false
14
14
  @@after_run = []
@@ -2,12 +2,10 @@
2
2
  require_relative 'minitest'
3
3
  require_relative 'minitest/spec'
4
4
 
5
- # patches to enable Appium spec
6
-
7
5
  require 'rubygems'
8
6
  require 'chronic_duration'
9
7
 
10
-
8
+ # patches to enable Appium spec
11
9
  module Minitest
12
10
  # override minitest.rb __run so tests execute serially
13
11
  def self.__run reporter, options
@@ -90,39 +88,42 @@ module Minitest
90
88
  reporter.reporters.each { |r| r.report }
91
89
  end
92
90
 
93
- ##
94
- # Responsible for running all runnable methods in a given class,
95
- # each in its own instance. Each instance is passed to the
96
- # reporter to record.
97
-
98
- def self.run reporter, options = {}
99
- filter = options[:filter] || '/./'
100
- filter = Regexp.new $1 if filter =~ /\/(.*)\//
101
-
102
- filtered_methods = self.runnable_methods.find_all { |m|
103
- filter === m || filter === "#{self}##{m}"
104
- }
105
-
106
- with_info_handler reporter do
107
- filtered_methods.each do |method_name|
108
-
109
- method = self.new(method_name)
110
- matched_name = method_name.match /test_(\d+)_/
111
- if matched_name
112
- test_number = matched_name[1].to_i
113
- test_name = method_name.split(/_\d+_/).last
114
- file_path, line_number = method.method(method_name).source_location
115
- # /5/4/3/2/1/test.rb => 2/1/test.rb
116
- file_path = file_path.split(File::SEPARATOR).reject(&:empty?)
117
- file_path = (file_path.length >= 3 ? file_path[-3..-1] :
118
- file_path).join(File::SEPARATOR)
119
- # 36 = cyan, 0 = clear
120
- test_output_title = "\e[36m#{test_name} | #{test_number} |" +
121
- "#{file_path}:#{line_number}\e[0m"
122
- io.puts test_output_title
91
+ class Runnable
92
+ ##
93
+ # Responsible for running all runnable methods in a given class,
94
+ # each in its own instance. Each instance is passed to the
95
+ # reporter to record.
96
+
97
+ def self.run reporter, options = {}
98
+ filter = options[:filter] || '/./'
99
+ filter = Regexp.new $1 if filter =~ /\/(.*)\//
100
+ io = options.fetch(:io, $stdout)
101
+
102
+ filtered_methods = self.runnable_methods.find_all { |m|
103
+ filter === m || filter === "#{self}##{m}"
104
+ }
105
+
106
+ with_info_handler reporter do
107
+ filtered_methods.each do |method_name|
108
+
109
+ method = self.new(method_name)
110
+ matched_name = method_name.match /test_(\d+)_/
111
+ if matched_name
112
+ test_number = matched_name[1].to_i
113
+ test_name = method_name.split(/_\d+_/).last
114
+ file_path, line_number = method.method(method_name).source_location
115
+ # /5/4/3/2/1/test.rb => 2/1/test.rb
116
+ file_path = file_path.split(File::SEPARATOR).reject(&:empty?)
117
+ file_path = (file_path.length >= 3 ? file_path[-3..-1] :
118
+ file_path).join(File::SEPARATOR)
119
+ # 36 = cyan, 0 = clear
120
+ test_output_title = "\e[36m#{test_name} | #{test_number} | " +
121
+ "#{file_path}:#{line_number}\e[0m"
122
+ io.puts test_output_title
123
+ end
124
+
125
+ run_one_method self, method_name, reporter
123
126
  end
124
-
125
- run_one_method self, method_name, reporter
126
127
  end
127
128
  end
128
129
  end
@@ -139,7 +140,7 @@ module Minitest
139
140
  def start # :nodoc:
140
141
  super
141
142
 
142
- self.sync = io.respond_to? :"sync=" # stupid emacs
143
+ self.sync = io.respond_to? :"sync=" # stupid emacs
143
144
  self.old_sync, io.sync = io.sync, true if self.sync
144
145
  end
145
146
 
@@ -0,0 +1,194 @@
1
+ #### v5.3.3 2014-04-21
2
+
3
+ - [ccb1fd1](https://github.com/bootstraponline/spec/commit/ccb1fd1ae43f13993f24ca29dcec157ffed4b8e0) Release 5.3.3
4
+ - [41f7965](https://github.com/bootstraponline/spec/commit/41f7965890b251fd9a1340b6feb4b5a5d2683963) Fix rake test
5
+ - [07a4bc0](https://github.com/bootstraponline/spec/commit/07a4bc00646edc961ab5ef2ebf010d87a225e019) Restore readme. Add gitignore
6
+ - [4988b33](https://github.com/bootstraponline/spec/commit/4988b333a6121d6e5555da770194f7c621a6976f) bump version
7
+ - [6f4e930](https://github.com/bootstraponline/spec/commit/6f4e930096930c5004ae85671f6b518253d215ac) Use minitest rev db17ed9
8
+ - [db17ed9](https://github.com/bootstraponline/spec/commit/db17ed9a57403eb914c96457db037b0b4056016f) readded minitest-rg as blowmage took it over [git-p4: depot-paths = "//src/minitest/dev/": change = 9403]
9
+ - [f3faa39](https://github.com/bootstraponline/spec/commit/f3faa39dc80112a778a00418de53ba90ccceb588) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 9400]
10
+ - [1fd58de](https://github.com/bootstraponline/spec/commit/1fd58dec2952fb969fb66e018f60b298581e9835) - Fixed using expectations w/ DSL in Test class w/o describe. (blowmage+others) [git-p4: depot-paths = "//src/minitest/dev/": change = 9399]
11
+ - [de0f486](https://github.com/bootstraponline/spec/commit/de0f4860aa2081ff581f9ba2411c422b182f63e9) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 9331]
12
+ - [5c47ab6](https://github.com/bootstraponline/spec/commit/5c47ab6e2a36741f372904057fddd4bb58cbfc79) remove shebang from minitest/spec.rb. (voxik) [git-p4: depot-paths = "//src/minitest/dev/": change = 9324]
13
+ - [a8603bf](https://github.com/bootstraponline/spec/commit/a8603bf359c460bb5f2764e460197d7c9a60299a) trying to fix perms [git-p4: depot-paths = "//src/minitest/dev/": change = 9323]
14
+ - [ea95baf](https://github.com/bootstraponline/spec/commit/ea95baff38137c3c6eef2a0ac1bc9cde441d1bff) - Fixed doco on Assertions.assertions. (xaviershay) [git-p4: depot-paths = "//src/minitest/dev/": change = 9322]
15
+ - [38f0a5f](https://github.com/bootstraponline/spec/commit/38f0a5fcbd9c37c3f80a3eaad4ba84d3fc9947a0) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 9277]
16
+ - [b21e1d4](https://github.com/bootstraponline/spec/commit/b21e1d44fede1e1e1056ebefdc155f1dd5f44859) Improved readability of readme. (deivid-rodriguez) [git-p4: depot-paths = "//src/minitest/dev/": change = 9267]
17
+ - [a6bf67e](https://github.com/bootstraponline/spec/commit/a6bf67e7326f6c80cf71d3365627755a97b1a300) - Fixed 2 cases still using MiniTest. (mikesea) [git-p4: depot-paths = "//src/minitest/dev/": change = 9263]
18
+ - [d9f90d4](https://github.com/bootstraponline/spec/commit/d9f90d4cf20c9091b4094df27d66bda6cca812f9) + Modified verbage on bad 'let' names to be more helpful. (Archytaus) [git-p4: depot-paths = "//src/minitest/dev/": change = 9250]
19
+ - [d0afe11](https://github.com/bootstraponline/spec/commit/d0afe114463520806fe33b6540c9ed419459374f) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 9246]
20
+ - [80041ef](https://github.com/bootstraponline/spec/commit/80041efe8198082ce257485844bfb076d067310b) + Mocked methods can take a block to verify state. Seattle.rb 12 bday present from ernie! Thanks!! [git-p4: depot-paths = "//src/minitest/dev/": change = 9245]
21
+ - [0ef1f88](https://github.com/bootstraponline/spec/commit/0ef1f880106f68171fa3305ecaaaab5650619d1e) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 9226]
22
+ - [2a8b2eb](https://github.com/bootstraponline/spec/commit/2a8b2ebf251fce510b0b1d3c78ddd4ecb1470de2) - Fixed Spec#let check to allow overriding of other lets. (mvz) [git-p4: depot-paths = "//src/minitest/dev/": change = 9212]
23
+ - [c843c1a](https://github.com/bootstraponline/spec/commit/c843c1abc8cfe60f09ab8f55bb9df40a40a69b83) Added minitest-rspec_mocks [git-p4: depot-paths = "//src/minitest/dev/": change = 9211]
24
+ - [2f32406](https://github.com/bootstraponline/spec/commit/2f324061705da788b7fb365f552f0ab671fc0be3) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 9207]
25
+ - [1440d71](https://github.com/bootstraponline/spec/commit/1440d71a8402a35959ea856b113df45c28a2a271) - Fixed up benchmark spec doco and added a test to demonstrate. (bhenderson) [git-p4: depot-paths = "//src/minitest/dev/": change = 9195]
26
+ - [d8df8b0](https://github.com/bootstraponline/spec/commit/d8df8b073d60c1db003a83bd0240b18f4b108f6b) Added minitest-documentation to README [git-p4: depot-paths = "//src/minitest/dev/": change = 9154]
27
+ - [f96721e](https://github.com/bootstraponline/spec/commit/f96721e8fe235e2c73a0b3710fde30eb11198272) Added minitest-vcr to readme [git-p4: depot-paths = "//src/minitest/dev/": change = 9153]
28
+ - [13c8d89](https://github.com/bootstraponline/spec/commit/13c8d891a416f409b04d7e99974870f019aa40b2) + Spec#let raises ArgumentError if you override _any_ instance method (except subject). (rynr) [git-p4: depot-paths = "//src/minitest/dev/": change = 9139]
29
+ - [edc8e3d](https://github.com/bootstraponline/spec/commit/edc8e3d029d3c38207deafa4b4c24018f2d88f26) fanfuckingtastic [git-p4: depot-paths = "//src/minitest/dev/": change = 9138]
30
+ - [3e31000](https://github.com/bootstraponline/spec/commit/3e31000936f666ab98dbea0118d74e28f4821c70) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 9135]
31
+ - [abc8d7b](https://github.com/bootstraponline/spec/commit/abc8d7bbac2bf49b2207b5e4722212109463eb18) killed dead code (teoljungberg) [git-p4: depot-paths = "//src/minitest/dev/": change = 9130]
32
+ - [39c22e1](https://github.com/bootstraponline/spec/commit/39c22e16fe76594484fb0e468da0f2d5ea4227d8) - Properly deal with horrible mix of runtime load errors + other at_exit handlers. (dougo/chqr) [git-p4: depot-paths = "//src/minitest/dev/": change = 9129]
33
+ - [f6283dd](https://github.com/bootstraponline/spec/commit/f6283ddf4468076d95a7c3e230bb45ea77e42bf6) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 9093]
34
+ - [3bb487d](https://github.com/bootstraponline/spec/commit/3bb487ded041fa95d130bbf6b27698d9fc220d77) Fixed require in minitest/hell. (locks) [git-p4: depot-paths = "//src/minitest/dev/": change = 9080]
35
+ - [85246b0](https://github.com/bootstraponline/spec/commit/85246b0806eb40d3891e3db23a78e495cfad2a3a) more (redundant) doco for testing [git-p4: depot-paths = "//src/minitest/dev/": change = 9079]
36
+ - [1c7dce4](https://github.com/bootstraponline/spec/commit/1c7dce4464397690d9c8719d48836dca53c846a9) + Change expectations to allow calling most on procs (but not calling the proc). (bhenderson+others) [git-p4: depot-paths = "//src/minitest/dev/": change = 9078]
37
+ - [92b5dea](https://github.com/bootstraponline/spec/commit/92b5dea28f4418c1d895d317824d1b5e6f36c2d2) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 9062]
38
+ - [d8c69bd](https://github.com/bootstraponline/spec/commit/d8c69bdb2042dee1cc791dfaa2dabd5172bb34d3) - Fixed misspelling in doco. (amatsuda) [git-p4: depot-paths = "//src/minitest/dev/": change = 9057]
39
+ - [dfa67e4](https://github.com/bootstraponline/spec/commit/dfa67e4ce0f94ceab2e4751f05ed3a659019ee1b) Added minitest-emacs mode to readme (arthurnn) [git-p4: depot-paths = "//src/minitest/dev/": change = 9039]
40
+ - [eaabfce](https://github.com/bootstraponline/spec/commit/eaabfce90e73b9533f7e1921a3d16ac1866efe42) renamed run_test to run_one_method [git-p4: depot-paths = "//src/minitest/dev/": change = 9035]
41
+ - [fcb1be2](https://github.com/bootstraponline/spec/commit/fcb1be2d8cd476de93e9a01c8a0989ffbbb9e78a) Fixed doco. Removed reporter from Minitest.run_test as it is never used [git-p4: depot-paths = "//src/minitest/dev/": change = 9034]
42
+ - [34760e3](https://github.com/bootstraponline/spec/commit/34760e3b268bc1bb4ac5fe1a44ef1ff0a2f9bd4d) + Use a Queue for scheduling parallel tests. (tenderlove) [git-p4: depot-paths = "//src/minitest/dev/": change = 9032]
43
+ - [a7f7d3b](https://github.com/bootstraponline/spec/commit/a7f7d3b626e8cd360166e3a693df90c6277a25f2) Added minitest-doc_reporter to readme [git-p4: depot-paths = "//src/minitest/dev/": change = 9025]
44
+ - [931fa48](https://github.com/bootstraponline/spec/commit/931fa486aa251302483e73859e82b6ec462613a2) Added minitest-stub_any_instance to readme. (codeodor) [git-p4: depot-paths = "//src/minitest/dev/": change = 8982]
45
+ - [c348cf8](https://github.com/bootstraponline/spec/commit/c348cf869f9f014b23d2babffb9933c54fc00c1b) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 8973]
46
+ - [170141c](https://github.com/bootstraponline/spec/commit/170141ce2a7c230ba0221196955272f8ccfdd5bf) Merged in History.txt from 4.7.5. oops. [git-p4: depot-paths = "//src/minitest/dev/": change = 8959]
47
+ - [d13b933](https://github.com/bootstraponline/spec/commit/d13b93389a3382c9992ca9c4aee75558479f611a) duh [git-p4: depot-paths = "//src/minitest/dev/": change = 8957]
48
+ - [f1b0d5a](https://github.com/bootstraponline/spec/commit/f1b0d5a75232bf6b659fc6e8a529734305e6140c) - Fixed siginfo handler by rearranging reporters and fixing to_s. (tenderlove) [git-p4: depot-paths = "//src/minitest/dev/": change = 8956]
49
+ - [85835c3](https://github.com/bootstraponline/spec/commit/85835c3c80b4944795a55b64baa54924fb6b7c28) prepped for release [git-p4: depot-paths = "//src/minitest/dev/": change = 8949]
50
+ - [4ec02de](https://github.com/bootstraponline/spec/commit/4ec02dee55c73b9fee8c97915533aaeb119c7759) Added list of top gems using minitest [git-p4: depot-paths = "//src/minitest/dev/": change = 8947]
51
+ - [595ce95](https://github.com/bootstraponline/spec/commit/595ce955c0d89575726d10fc18d2afd8f334bcbe) - Only require minitest, not minitest/autorun in pride_plugin. (judofyr) [git-p4: depot-paths = "//src/minitest/dev/": change = 8928]
52
+ - [f77c371](https://github.com/bootstraponline/spec/commit/f77c37152f6ff0748d29449ed17bb121894b0d94) - Require rubygems in load_plugins in case you're not using minitest/autorun. [git-p4: depot-paths = "//src/minitest/dev/": change = 8927]
53
+ - [6718322](https://github.com/bootstraponline/spec/commit/6718322e3d42d10aa66ff884e34e376fdf38c8aa) Added restore_env to tests to test MT_NO_SKIP_MSG. Other test improvements [git-p4: depot-paths = "//src/minitest/dev/": change = 8921]
54
+ - [7d445dd](https://github.com/bootstraponline/spec/commit/7d445ddcb46904cdd5a0b099e3d7bd082a74bd24) Release 5.0.19
55
+ - [1c0658e](https://github.com/bootstraponline/spec/commit/1c0658e1350b8c475899e46a8a6bbf8aebea6369) Skip is not a failure
56
+ - [47cad48](https://github.com/bootstraponline/spec/commit/47cad48b9eba6b63aa4910b7dcc664571c99c2c0) Fix tests
57
+ - [59d438a](https://github.com/bootstraponline/spec/commit/59d438acbd227b0a83d8f9cf74f2043a4af4baa5) skip message tests [git-p4: depot-paths = "//src/minitest/dev/": change = 8896]
58
+ - [25528b5](https://github.com/bootstraponline/spec/commit/25528b51b1f2b3939e58b85f7ba37454120d1344) + Added extra message about skipped tests, if any. Disable globally with $MT_NO_SKIP_MSG. [git-p4: depot-paths = "//src/minitest/dev/": change = 8895]
59
+ - [3b8c252](https://github.com/bootstraponline/spec/commit/3b8c2525240d3b88e17920f3f43ddf1072e7f4e0) more of the same [git-p4: depot-paths = "//src/minitest/dev/": change = 8894]
60
+ - [d5a1bf4](https://github.com/bootstraponline/spec/commit/d5a1bf405bbbc6269e258425bdeb5573f04ab233) + Added clarification about the use of thread local variables in expectations. (jemc) [git-p4: depot-paths = "//src/minitest/dev/": change = 8893]
61
+ - [1da5ba6](https://github.com/bootstraponline/spec/commit/1da5ba69070134c9559c69bcf0291f88e4083660) skip message tests [git-p4: depot-paths = "//src/minitest/dev/": change = 8896]
62
+ - [abc7ebb](https://github.com/bootstraponline/spec/commit/abc7ebb4e57b75f1e0eb5d6da0184b0ee051ec32) + Added extra message about skipped tests, if any. Disable globally with $MT_NO_SKIP_MSG. [git-p4: depot-paths = "//src/minitest/dev/": change = 8895]
63
+ - [aabda77](https://github.com/bootstraponline/spec/commit/aabda7736514814e5c32dd10640fb09ea4a118b1) more of the same [git-p4: depot-paths = "//src/minitest/dev/": change = 8894]
64
+ - [f286313](https://github.com/bootstraponline/spec/commit/f286313ac9abeba8b44fe5a83faee9a1b87bc6cb) + Added clarification about the use of thread local variables in expectations. (jemc) [git-p4: depot-paths = "//src/minitest/dev/": change = 8893]
65
+ - [389767a](https://github.com/bootstraponline/spec/commit/389767ac281895da84068c0b21ce9a2d8e2275c8) Must expand_path to get proper trace results
66
+ - [60c70b0](https://github.com/bootstraponline/spec/commit/60c70b0ef6005a515086467c1af3a9faedfb4da3) Release 5.0.18
67
+ - [c0ebada](https://github.com/bootstraponline/spec/commit/c0ebada0543fb3d11ceb441cf17da91566119c41) Invoke after_run on Ctrl + C
68
+ - [630edb2](https://github.com/bootstraponline/spec/commit/630edb2b45f3948ca0d465f29e1c198050fe0fb5) Fix exit
69
+ - [605696d](https://github.com/bootstraponline/spec/commit/605696d4952c9a8b9107e3a338c8713d6f979d18) Release 5.0.17
70
+ - [6665bda](https://github.com/bootstraponline/spec/commit/6665bdab8c57a3ec19849df9098593e36203cb46) Fix after_run
71
+ - [01269eb](https://github.com/bootstraponline/spec/commit/01269eb8f6e6209c5de9f55a0735ce23935d995a) Release 5.0.16
72
+ - [40504bb](https://github.com/bootstraponline/spec/commit/40504bbc92639baa24858a11f1ac931010980499) Print test name
73
+ - [c1f227c](https://github.com/bootstraponline/spec/commit/c1f227ca8f2803d2fe4da8caf7106f8cdda206e6) Release 5.0.15
74
+ - [df3f638](https://github.com/bootstraponline/spec/commit/df3f6387c4517962e53e577e980cbf9aed13eac9) Trace everytime run_specs is invoked
75
+ - [c5199e7](https://github.com/bootstraponline/spec/commit/c5199e7ae2578bb15a684210ba771d4db237121b) Release 5.0.14
76
+ - [6f52eed](https://github.com/bootstraponline/spec/commit/6f52eedbc2b6a2f963af31b8a9abc8be81b327e7) Fix trace
77
+ - [c401d7c](https://github.com/bootstraponline/spec/commit/c401d7cad546351f63ad62b17387643ce1b19b14) Release 5.0.13
78
+ - [f94221a](https://github.com/bootstraponline/spec/commit/f94221a3d3765c3884b76e320c479c901b39bcbb) Use set_trace_func instead of ruby2ruby
79
+ - [068adc4](https://github.com/bootstraponline/spec/commit/068adc41623e97981a5c80cf9c76bcb238b0dd46) Release 5.0.12
80
+ - [85460e5](https://github.com/bootstraponline/spec/commit/85460e58dbf95a9333771a3b508fc04c244ed057) Add method_source
81
+ - [2f64c6d](https://github.com/bootstraponline/spec/commit/2f64c6d65882f63f2cc2e19c83127bf8de957e5a) Release 5.0.11
82
+ - [7087a22](https://github.com/bootstraponline/spec/commit/7087a2254fc5644ea731852b2cbd9c384688c4d6) Fix comments
83
+ - [904c734](https://github.com/bootstraponline/spec/commit/904c734c6de78170e5128f24ab74a33f41407d45) Add more tests
84
+ - [c7a5948](https://github.com/bootstraponline/spec/commit/c7a5948169fb92fc11e8cc7afb2b0addd0bf60b3) All tests pass
85
+ - [6735b63](https://github.com/bootstraponline/spec/commit/6735b634467ba484085f8a26b815f65172a7c214) Fix after
86
+ - [3a578f4](https://github.com/bootstraponline/spec/commit/3a578f4eccead98793a437ca83e2bb66a9065c43) Start fixing rake test
87
+ - [9b04c73](https://github.com/bootstraponline/spec/commit/9b04c73410a5aeda35441078a7dfcea94ccabb9c) Don't print dots when running specs
88
+ - [e38252c](https://github.com/bootstraponline/spec/commit/e38252c587961d55b27d96d88e5b4aa32ece0d4e) t and it now print source
89
+ - [cb8063e](https://github.com/bootstraponline/spec/commit/cb8063e513d8be5a949366735130323a2b6cc67d) before_first, before, after, after_last now print source
90
+ - [0e370a7](https://github.com/bootstraponline/spec/commit/0e370a7181b94ed9f6eeb1e3c1557352501a9e8d) Fix before_first and after_last
91
+ - [9108c74](https://github.com/bootstraponline/spec/commit/9108c742f0fb061334a33eb29db3dade1b74e072) Add run specs
92
+ - [f2ea5f3](https://github.com/bootstraponline/spec/commit/f2ea5f387f3f92c8b1a9585bc560a1ed4041a57d) Fix raise
93
+ - [a41b7b5](https://github.com/bootstraponline/spec/commit/a41b7b5b170009dc5582c100ffa00ae99bf07bec) Fix gemspec
94
+ - [b35c3f9](https://github.com/bootstraponline/spec/commit/b35c3f9de6a8779ad575ad2c61bbfcb8ea7407c6) Fix reporting. More tests
95
+ - [ed620db](https://github.com/bootstraponline/spec/commit/ed620dbaaecf8e9aea18cfdc6c1db5c647b9aa51) Exit after first failure
96
+ - [0c359ef](https://github.com/bootstraponline/spec/commit/0c359efa663b4b6666c2e409faf57447db32ef4a) Start/report for full output
97
+ - [e78a157](https://github.com/bootstraponline/spec/commit/e78a157e23012ca2f26b7f1f20ab3761e511b434) Add before_first and after_last
98
+ - [17acf00](https://github.com/bootstraponline/spec/commit/17acf00114e32b2e45701a016212cd8eb558db18) Require minitest/spec by default
99
+ - [b7c66c8](https://github.com/bootstraponline/spec/commit/b7c66c839f7a520ea6eb9e22f54ecf493c7dab41) Fix test
100
+ - [8d6fe7d](https://github.com/bootstraponline/spec/commit/8d6fe7d724128ce263f2d4fc96bd40f293c3c8cb) Release 5.0.10
101
+ - [cb5f7b6](https://github.com/bootstraponline/spec/commit/cb5f7b69610c66281b6dc0a586048ce715d8288c) Enable require 'spec'
102
+ - [540ba98](https://github.com/bootstraponline/spec/commit/540ba98384e8945f6624a2726cc338e0378b67ff) Release 5.0.9
103
+ - [b09edff](https://github.com/bootstraponline/spec/commit/b09edff644cb25166177beb9c639a1817140d0b5) Add gem template
104
+ - [9dbec56](https://github.com/bootstraponline/spec/commit/9dbec56dcddb73f4208e4822b902c7cc2059b601) Fix tests to work with natural order
105
+ - [06f5c95](https://github.com/bootstraponline/spec/commit/06f5c95ea9a7771dec3432da0f97803b60b6c150) Add manual test
106
+ - [6423c16](https://github.com/bootstraponline/spec/commit/6423c1688d7d6f8983b15f70d6f2c083f35ba5ab) Never change test order
107
+ - [215952a](https://github.com/bootstraponline/spec/commit/215952ae038cc763b6fc349dd753762d355ebef8) Alias t to it
108
+ - [cc545a1](https://github.com/bootstraponline/spec/commit/cc545a119c63d268183205b401b206a9c342412c) Use gitignore
109
+
110
+
111
+ #### v5.0.19 2013-08-19
112
+
113
+ - [7d445dd](https://github.com/bootstraponline/spec/commit/7d445ddcb46904cdd5a0b099e3d7bd082a74bd24) Release 5.0.19
114
+ - [1c0658e](https://github.com/bootstraponline/spec/commit/1c0658e1350b8c475899e46a8a6bbf8aebea6369) Skip is not a failure
115
+ - [47cad48](https://github.com/bootstraponline/spec/commit/47cad48b9eba6b63aa4910b7dcc664571c99c2c0) Fix tests
116
+ - [59d438a](https://github.com/bootstraponline/spec/commit/59d438acbd227b0a83d8f9cf74f2043a4af4baa5) skip message tests [git-p4: depot-paths = "//src/minitest/dev/": change = 8896]
117
+ - [25528b5](https://github.com/bootstraponline/spec/commit/25528b51b1f2b3939e58b85f7ba37454120d1344) + Added extra message about skipped tests, if any. Disable globally with $MT_NO_SKIP_MSG. [git-p4: depot-paths = "//src/minitest/dev/": change = 8895]
118
+ - [3b8c252](https://github.com/bootstraponline/spec/commit/3b8c2525240d3b88e17920f3f43ddf1072e7f4e0) more of the same [git-p4: depot-paths = "//src/minitest/dev/": change = 8894]
119
+ - [d5a1bf4](https://github.com/bootstraponline/spec/commit/d5a1bf405bbbc6269e258425bdeb5573f04ab233) + Added clarification about the use of thread local variables in expectations. (jemc) [git-p4: depot-paths = "//src/minitest/dev/": change = 8893]
120
+ - [389767a](https://github.com/bootstraponline/spec/commit/389767ac281895da84068c0b21ce9a2d8e2275c8) Must expand_path to get proper trace results
121
+
122
+
123
+ #### v5.0.18 2013-08-13
124
+
125
+ - [60c70b0](https://github.com/bootstraponline/spec/commit/60c70b0ef6005a515086467c1af3a9faedfb4da3) Release 5.0.18
126
+ - [c0ebada](https://github.com/bootstraponline/spec/commit/c0ebada0543fb3d11ceb441cf17da91566119c41) Invoke after_run on Ctrl + C
127
+ - [630edb2](https://github.com/bootstraponline/spec/commit/630edb2b45f3948ca0d465f29e1c198050fe0fb5) Fix exit
128
+
129
+
130
+ #### v5.0.17 2013-08-12
131
+
132
+ - [605696d](https://github.com/bootstraponline/spec/commit/605696d4952c9a8b9107e3a338c8713d6f979d18) Release 5.0.17
133
+ - [6665bda](https://github.com/bootstraponline/spec/commit/6665bdab8c57a3ec19849df9098593e36203cb46) Fix after_run
134
+
135
+
136
+ #### v5.0.16 2013-08-10
137
+
138
+ - [01269eb](https://github.com/bootstraponline/spec/commit/01269eb8f6e6209c5de9f55a0735ce23935d995a) Release 5.0.16
139
+ - [40504bb](https://github.com/bootstraponline/spec/commit/40504bbc92639baa24858a11f1ac931010980499) Print test name
140
+
141
+
142
+ #### v5.0.15 2013-08-07
143
+
144
+ - [c1f227c](https://github.com/bootstraponline/spec/commit/c1f227ca8f2803d2fe4da8caf7106f8cdda206e6) Release 5.0.15
145
+ - [df3f638](https://github.com/bootstraponline/spec/commit/df3f6387c4517962e53e577e980cbf9aed13eac9) Trace everytime run_specs is invoked
146
+
147
+
148
+ #### v5.0.14 2013-08-07
149
+
150
+ - [c5199e7](https://github.com/bootstraponline/spec/commit/c5199e7ae2578bb15a684210ba771d4db237121b) Release 5.0.14
151
+ - [6f52eed](https://github.com/bootstraponline/spec/commit/6f52eedbc2b6a2f963af31b8a9abc8be81b327e7) Fix trace
152
+
153
+
154
+ #### v5.0.13 2013-08-07
155
+
156
+ - [c401d7c](https://github.com/bootstraponline/spec/commit/c401d7cad546351f63ad62b17387643ce1b19b14) Release 5.0.13
157
+ - [f94221a](https://github.com/bootstraponline/spec/commit/f94221a3d3765c3884b76e320c479c901b39bcbb) Use set_trace_func instead of ruby2ruby
158
+
159
+
160
+ #### v5.0.12 2013-08-05
161
+
162
+ - [068adc4](https://github.com/bootstraponline/spec/commit/068adc41623e97981a5c80cf9c76bcb238b0dd46) Release 5.0.12
163
+ - [85460e5](https://github.com/bootstraponline/spec/commit/85460e58dbf95a9333771a3b508fc04c244ed057) Add method_source
164
+
165
+
166
+ #### v5.0.11 2013-08-05
167
+
168
+ - [2f64c6d](https://github.com/bootstraponline/spec/commit/2f64c6d65882f63f2cc2e19c83127bf8de957e5a) Release 5.0.11
169
+ - [7087a22](https://github.com/bootstraponline/spec/commit/7087a2254fc5644ea731852b2cbd9c384688c4d6) Fix comments
170
+ - [904c734](https://github.com/bootstraponline/spec/commit/904c734c6de78170e5128f24ab74a33f41407d45) Add more tests
171
+ - [c7a5948](https://github.com/bootstraponline/spec/commit/c7a5948169fb92fc11e8cc7afb2b0addd0bf60b3) All tests pass
172
+ - [6735b63](https://github.com/bootstraponline/spec/commit/6735b634467ba484085f8a26b815f65172a7c214) Fix after
173
+ - [3a578f4](https://github.com/bootstraponline/spec/commit/3a578f4eccead98793a437ca83e2bb66a9065c43) Start fixing rake test
174
+ - [9b04c73](https://github.com/bootstraponline/spec/commit/9b04c73410a5aeda35441078a7dfcea94ccabb9c) Don't print dots when running specs
175
+ - [e38252c](https://github.com/bootstraponline/spec/commit/e38252c587961d55b27d96d88e5b4aa32ece0d4e) t and it now print source
176
+ - [cb8063e](https://github.com/bootstraponline/spec/commit/cb8063e513d8be5a949366735130323a2b6cc67d) before_first, before, after, after_last now print source
177
+ - [0e370a7](https://github.com/bootstraponline/spec/commit/0e370a7181b94ed9f6eeb1e3c1557352501a9e8d) Fix before_first and after_last
178
+ - [9108c74](https://github.com/bootstraponline/spec/commit/9108c742f0fb061334a33eb29db3dade1b74e072) Add run specs
179
+ - [f2ea5f3](https://github.com/bootstraponline/spec/commit/f2ea5f387f3f92c8b1a9585bc560a1ed4041a57d) Fix raise
180
+ - [a41b7b5](https://github.com/bootstraponline/spec/commit/a41b7b5b170009dc5582c100ffa00ae99bf07bec) Fix gemspec
181
+ - [b35c3f9](https://github.com/bootstraponline/spec/commit/b35c3f9de6a8779ad575ad2c61bbfcb8ea7407c6) Fix reporting. More tests
182
+ - [ed620db](https://github.com/bootstraponline/spec/commit/ed620dbaaecf8e9aea18cfdc6c1db5c647b9aa51) Exit after first failure
183
+ - [0c359ef](https://github.com/bootstraponline/spec/commit/0c359efa663b4b6666c2e409faf57447db32ef4a) Start/report for full output
184
+ - [e78a157](https://github.com/bootstraponline/spec/commit/e78a157e23012ca2f26b7f1f20ab3761e511b434) Add before_first and after_last
185
+ - [17acf00](https://github.com/bootstraponline/spec/commit/17acf00114e32b2e45701a016212cd8eb558db18) Require minitest/spec by default
186
+ - [b7c66c8](https://github.com/bootstraponline/spec/commit/b7c66c839f7a520ea6eb9e22f54ecf493c7dab41) Fix test
187
+
188
+
189
+ #### v5.0.10 2013-07-29
190
+
191
+ - [8d6fe7d](https://github.com/bootstraponline/spec/commit/8d6fe7d724128ce263f2d4fc96bd40f293c3c8cb) Release 5.0.10
192
+ - [cb5f7b6](https://github.com/bootstraponline/spec/commit/cb5f7b69610c66281b6dc0a586048ce715d8288c) Enable require 'spec'
193
+ - [540ba98](https://github.com/bootstraponline/spec/commit/540ba98384e8945f6624a2726cc338e0378b67ff) Release 5.0.9
194
+ - [3be1349](https://github.com/bootstraponline/spec/commit/3be13498fc086f6b3fc4f342190383aba4992264) Release 5.0.9
@@ -0,0 +1,42 @@
1
+ require 'rubygems'
2
+ require_relative '../lib/spec'
3
+ require 'stringio'
4
+
5
+ tests = []
6
+ Dir.glob("#{__dir__}/**/*_test.rb") do |file|
7
+ tests << File.expand_path(file) unless File.directory? file
8
+ end
9
+
10
+ results = {}
11
+
12
+ expected_data = { "run_once_in_before_test.rb" => "\e[36m1 | 1 | spec/test_custom/run_once_in_before_test.rb:8\e[0m\n\e[32m before { run_once }\n\e[0m\e[32m def run_once\n\e[0m\e[32m self.class.send :define_method, :run_once, proc {}\n\e[0m\e[32m end\n\e[0m\e[36m2 | 2 | spec/test_custom/run_once_in_before_test.rb:11\e[0m\n\e[32m before { run_once }\n\e[0m\e[36m3 | 3 | spec/test_custom/run_once_in_before_test.rb:14\e[0m\n\n\nFinished in 0s\n\n3 runs, 0 assertions, 0 failures, 0 errors, 0 skips\n", "simple_test.rb" => "\e[36msimple spec test | 1 | spec/test_custom/simple_test.rb:2\e[0m\n\e[32m 1.must_equal 1\n\e[0m\n\nFinished in 0s\n\n1 runs, 1 assertions, 0 failures, 0 errors, 0 skips\n" }
13
+
14
+ reporter = []
15
+
16
+ tests.each do |test|
17
+ Minitest::Runnable.runnables.each { |r| r.reset }
18
+ require test
19
+ $capture = StringIO.new
20
+
21
+ Minitest.run_specs({ trace: [test], io: $capture })
22
+ Minitest::Runnable.runnables.each { |r| r.reset }
23
+ key = File.basename(test)
24
+ results[key] = $capture.string
25
+ $capture = StringIO.new
26
+
27
+ actual = results[key]
28
+ expected = expected_data[key]
29
+ # verify against expected
30
+ if actual != expected
31
+ reporter << " Results different for #{key}.\n\n:: Actual:\n#{actual}\n\n:: Expected:\n#{expected}"
32
+ end
33
+ end
34
+
35
+ total_tests = tests.length
36
+ failed_tests = reporter.length
37
+ successful_tests = total_tests - failed_tests
38
+
39
+ puts "#{total_tests} tests, #{failed_tests} failed, #{successful_tests} successful"
40
+ puts reporter.join("\n") unless reporter.empty?
41
+
42
+ # puts results.inspect
@@ -0,0 +1,16 @@
1
+ describe 'test' do
2
+ def run_once
3
+ self.class.send :define_method, :run_once, proc {}
4
+ end
5
+
6
+ before { run_once }
7
+
8
+ t '1' do
9
+ end
10
+
11
+ t '2' do
12
+ end
13
+
14
+ t '3' do
15
+ end
16
+ end
@@ -0,0 +1,5 @@
1
+ describe 'test' do
2
+ t 'simple spec test' do
3
+ 1.must_equal 1
4
+ end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.3
4
+ version: 5.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-21 00:00:00.000000000 Z
11
+ date: 2014-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic_duration
@@ -85,14 +85,17 @@ files:
85
85
  - lib/minitest/unit.rb
86
86
  - lib/spec.rb
87
87
  - readme.md
88
+ - release_notes.md
88
89
  - spec.gemspec
89
- - test/manual/simple.rb
90
90
  - test/minitest/metametameta.rb
91
91
  - test/minitest/test_minitest_benchmark.rb
92
92
  - test/minitest/test_minitest_mock.rb
93
93
  - test/minitest/test_minitest_reporter.rb
94
94
  - test/minitest/test_minitest_spec.rb
95
95
  - test/minitest/test_minitest_unit.rb
96
+ - test_custom/run.rb
97
+ - test_custom/run_once_in_before_test.rb
98
+ - test_custom/simple_test.rb
96
99
  homepage: https://github.com/bootstraponline/spec
97
100
  licenses:
98
101
  - MIT
@@ -1,14 +0,0 @@
1
- require 'rubygems'
2
- require 'spec'
3
- describe 'test' do
4
- t 'simple spec test' do
5
- 1.must_equal 1
6
- end
7
- end
8
-
9
- Minitest.after_run do
10
- puts 'minitest -- after run'
11
- end
12
-
13
- trace_files = [File.expand_path(__FILE__)]
14
- Minitest.run_specs({trace: trace_files})