spout 0.3.0.rc → 0.3.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/spout/actions.rb +2 -2
- data/lib/spout/hidden_reporter.rb +3 -3
- data/lib/spout/tests.rb +1 -1
- data/lib/spout/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5671a8b41975a9ab290e27c97afd2e145e3b268
|
4
|
+
data.tar.gz: de9fbced0d2dd9f7b926cf266a3d7f44c64102de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c999b5af0fb4832ba0f3fb1d9ab4302e060d7d4da38232a86358eae4e4de18c69390bf034cf672ee98a6250ce95d34b9a6ad05fd015ca29a20361dc49bf833
|
7
|
+
data.tar.gz: b6dc0ec67ca26940e11be22af04179b34cfceef4484bd16413d773977a642c435ab33633e41c2aaf6602c5f6cccdfab966871f8d5fa3fdda4a41b7e4631278ef
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
### Enhancements
|
4
4
|
- Tests now hide passing tests by default
|
5
|
-
- To show all tests, use `spout tv`, or
|
5
|
+
- To show all tests, use `spout tv`, or `bundle exec rake`
|
6
6
|
- Exports will now create a folder based on the version specified in the `VERSION` file located in the root of the data dictionary
|
7
7
|
- If a version is specified, `spout export 1.0.1` then the command line version is used
|
8
8
|
- If no version is specified, and no `VERSION` file exists, then the default `1.0.0` is used
|
data/lib/spout/actions.rb
CHANGED
@@ -8,9 +8,9 @@ module Spout
|
|
8
8
|
when '--version', '-v', '-ve', '-ver', 'version', 'v', 've', 'ver'
|
9
9
|
puts "Spout #{Spout::VERSION::STRING}"
|
10
10
|
when 'test', 't', 'te', 'tes', '--test', '-t', '-te', '-tes'
|
11
|
-
system "bundle exec rake"
|
11
|
+
system "bundle exec rake HIDE_PASSING_TESTS=true"
|
12
12
|
when 'tv'
|
13
|
-
system "bundle exec rake
|
13
|
+
system "bundle exec rake"
|
14
14
|
when 'import', 'i', 'im', 'imp', '--import', '-i', '-im', '-imp'
|
15
15
|
import_from_csv(argv)
|
16
16
|
when 'import_domain', '--import_domain', 'import_domains', '--import_domains'
|
@@ -17,13 +17,13 @@ module Spout
|
|
17
17
|
# Character to put in front of backtrace.
|
18
18
|
TRACE_MARK = '@ '
|
19
19
|
|
20
|
-
def initialize(
|
20
|
+
def initialize(hide_passing_tests)
|
21
21
|
@io = $stdout
|
22
22
|
@trace = nil
|
23
23
|
@natural = nil
|
24
24
|
@verbose = nil
|
25
25
|
@mark = 0
|
26
|
-
@
|
26
|
+
@hide_passing_tests = hide_passing_tests
|
27
27
|
end
|
28
28
|
|
29
29
|
# At the very start, before any testcases are run, this is called.
|
@@ -56,7 +56,7 @@ module Spout
|
|
56
56
|
|
57
57
|
# Invoked when a test passes.
|
58
58
|
def pass(message=nil)
|
59
|
-
|
59
|
+
unless @hide_passing_tests
|
60
60
|
banner PASS
|
61
61
|
|
62
62
|
if message
|
data/lib/spout/tests.rb
CHANGED
@@ -24,7 +24,7 @@ require 'spout/hidden_reporter'
|
|
24
24
|
module Turn
|
25
25
|
class Configuration
|
26
26
|
def reporter
|
27
|
-
@reporter ||= Spout::HiddenReporter.new(ENV['
|
27
|
+
@reporter ||= Spout::HiddenReporter.new(ENV['HIDE_PASSING_TESTS'] == 'true')
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
data/lib/spout/version.rb
CHANGED