minitap 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.index +2 -2
- data/HISTORY.md +11 -0
- data/README.md +27 -0
- data/lib/minitap/minitest5.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 411e52de16d0efd7ca361002439076792e8b6ec0
|
4
|
+
data.tar.gz: b21a983ac1758be81486b6131e46596894ad12ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c60e2728c098add4be85933e0c0886233d4f8d6fa893eff08c69ca02b59124515ae8b14b13ebcbc50054feb99fcf314b2600332b1a7b43a0064761a242736ae
|
7
|
+
data.tar.gz: 5658499aeaf41290d62b421720153548ed4433933a54353e5176cfdd17f0bf899e39d24cd86c53c04d6e05bf679b50d093384475bd1558f2e1acbd5083aaeea4
|
data/.index
CHANGED
data/HISTORY.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# RELEASE HISTORY
|
2
2
|
|
3
|
+
## 0.5.3 | 2013-11-20
|
4
|
+
|
5
|
+
Small change made to ensure that output i/o is un sync mode.
|
6
|
+
This prevents test results fro being buffered over the pipe
|
7
|
+
|
8
|
+
Changes:
|
9
|
+
|
10
|
+
* Add `io.sync = true` *after* Minitest reporter class is initialized.
|
11
|
+
* Add notes to README about use tapout's pause and resume feature.
|
12
|
+
|
13
|
+
|
3
14
|
## 0.5.2 | 2013-11-18
|
4
15
|
|
5
16
|
This release makes it possible to specify reporters in code
|
data/README.md
CHANGED
@@ -113,6 +113,33 @@ Then pipe the output to the `tapout` command, e.g.
|
|
113
113
|
$ rpt=tapy ruby test/some_test.rb | tapout progressbar
|
114
114
|
|
115
115
|
|
116
|
+
# Using Pry & Other Tools
|
117
|
+
|
118
|
+
Becuase Tapout communicates with Minitest via a shell pipe it is improtant
|
119
|
+
to keep in mind that any non TAP-Y/J output that tapout receives might
|
120
|
+
force it to halt. To ensure this doesn't occur a *pause code* (`16.chr`) can
|
121
|
+
be sent over the pipe to instruct the tapout comamnd to stop processing test
|
122
|
+
results and route `$stdin` directly to `$stdout` instead. A *resume code*
|
123
|
+
(`23.chr`) can be sent to restart test result processing.
|
124
|
+
|
125
|
+
A good example of this is when using `binding.pry` for debugging. To do so
|
126
|
+
while using tapout:
|
127
|
+
|
128
|
+
require 'tapout/utility'
|
129
|
+
tapout.pause{ binding.pry }
|
130
|
+
|
131
|
+
Or, even more convenient, specifically for use with pry:
|
132
|
+
|
133
|
+
require 'tapout/utility'
|
134
|
+
tapout.pry(binding)
|
135
|
+
|
136
|
+
Which is a more covenient way of coding:
|
137
|
+
|
138
|
+
STDOUT.puts 16.chr
|
139
|
+
binding.pry
|
140
|
+
STDOUT.puts 23.chr
|
141
|
+
|
142
|
+
|
116
143
|
# Copying
|
117
144
|
|
118
145
|
Copyright (c) 2011 Rubyworks
|
data/lib/minitap/minitest5.rb
CHANGED
@@ -41,6 +41,9 @@ module Minitest
|
|
41
41
|
|
42
42
|
super(io, options)
|
43
43
|
|
44
|
+
# since tapout uses a unix pipe, we don't want any buffering
|
45
|
+
io.sync = true
|
46
|
+
|
44
47
|
#@_stdout = StringIO.new
|
45
48
|
#@_stderr = StringIO.new
|
46
49
|
|
@@ -876,7 +879,6 @@ module Minitest
|
|
876
879
|
|
877
880
|
def wp(str)
|
878
881
|
io.puts(str)
|
879
|
-
#STDOUT.puts(str)
|
880
882
|
end
|
881
883
|
end
|
882
884
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- trans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tapout
|