minitest-tagz 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minitest/tagz/version.rb +1 -1
- data/lib/minitest/tagz.rb +6 -3
- 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: 68552faddcbeae61654950da52867dd85e02897e
|
4
|
+
data.tar.gz: cf7ed2aede4f83c066de76ee72869a762d5e88e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72e56e2db89004cb8b1bb75b74c27fd69831a38e2b106d200af3b5d648ae6d7f1750942c35664251012410b31992f39951dc10adbefb653328e8067462c9d6d9
|
7
|
+
data.tar.gz: 60caf289b8c4c1d3e20cad76f3277d55f3590a860f988d79448c115529e9df5b943d0915f04f578470b359f86cdfc5f252fe5add131134a249de762ea569847c
|
data/lib/minitest/tagz.rb
CHANGED
@@ -39,7 +39,7 @@ module Minitest
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
if should_skip_filter
|
42
|
-
puts "Couldn't find any runnables with the given tag, running all runnables"
|
42
|
+
puts "Couldn't find any runnables with the given tag, running all runnables" if Tags.log_if_no_match?
|
43
43
|
return super
|
44
44
|
end
|
45
45
|
end
|
@@ -190,17 +190,20 @@ module Minitest
|
|
190
190
|
|
191
191
|
# Main extensions to Minitest
|
192
192
|
class << self
|
193
|
-
attr_accessor :chosen_tags, :run_all_if_no_match
|
193
|
+
attr_accessor :chosen_tags, :run_all_if_no_match, :log_if_no_match
|
194
194
|
|
195
195
|
alias :run_all_if_no_match? :run_all_if_no_match
|
196
|
+
alias :log_if_no_match? :log_if_no_match
|
196
197
|
|
197
198
|
# Create a master TagSet that you wish to test. You only
|
198
199
|
# want to run tests with tags in this set
|
199
200
|
# @param [Enumerable<Symbol>] tags - a list of tags you want to test
|
200
201
|
# @param [Boolean] run_all_if_no_match - will run all tests if no tests are found with the tag
|
201
|
-
|
202
|
+
# @param [Boolean] log_if_no_match - puts if no match specs found
|
203
|
+
def choose_tags(*tags, log_if_no_match: false, run_all_if_no_match: false)
|
202
204
|
@chosen_tags = tags.map(&:to_sym)
|
203
205
|
@run_all_if_no_match = run_all_if_no_match
|
206
|
+
@log_if_no_match = log_if_no_match
|
204
207
|
end
|
205
208
|
|
206
209
|
def declare_tag_assignment(owner, pending_tags)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-tagz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Bodah
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|