cucumber-timed_formatter 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rvmrc +1 -1
- data/Gemfile +0 -2
- data/LICENSE +19 -0
- data/README +7 -0
- data/cucumber-timed_formatter.gemspec +9 -6
- data/lib/cucumber-timed_formatter/version.rb +2 -4
- data/lib/timed.rb +15 -5
- metadata +44 -61
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f40eae01a53f0c1f697bf04c69994461593fdf8c
|
4
|
+
data.tar.gz: b7f23b5287f79d0fe03a85e2cd5c16d92214e0a4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b41103cbefdf79893c091a940e2e244d2939d53b2c3ce4440a9874037f2ce3e0e32656dba04aa8278948d3d079b05508ab79e809d430035a673a104d65366125
|
7
|
+
data.tar.gz: 61c904b3019174d562a966c7f07c01fa12868ddb0393765d8eee77b2319b8af2ffab3b9c470f453c02ad847a2401438aecd3aa0291e403839a642ce7c075063b
|
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm use
|
1
|
+
rvm use 2.2.3@cucumber-timed_formatter --create
|
data/Gemfile
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2016 Matthias Viehweger
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
8
|
+
so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
data/README
CHANGED
@@ -16,3 +16,10 @@ Not using Rails? You just need to ensure that the file is somewhere it can be
|
|
16
16
|
included, and call it like:
|
17
17
|
|
18
18
|
cucumber features/* --require path/to/timed.rb -f Cucumber::Formatter::Timed
|
19
|
+
|
20
|
+
== Version Note
|
21
|
+
|
22
|
+
The current version 1.0 should be working with cucumber 2.x. If not, please
|
23
|
+
open an issue or pull request.
|
24
|
+
|
25
|
+
cucumber 1.x was supported in version 0.2 of this gem.
|
@@ -4,24 +4,27 @@ require File.expand_path('../lib/cucumber-timed_formatter/version.rb', __FILE__)
|
|
4
4
|
|
5
5
|
spec = Gem::Specification.new do |s|
|
6
6
|
s.name = "cucumber-timed_formatter"
|
7
|
-
s.version = Cucumber::
|
7
|
+
s.version = Cucumber::TimedFormatter::VERSION
|
8
8
|
s.date = File.mtime(__FILE__)
|
9
|
-
s.summary = "A progress-formatter with a little more info"
|
10
|
-
s.description = "A progress-formatter with a little more info: Each Scenario is one line and the time is measured.
|
9
|
+
s.summary = "A progress-formatter with a little more info, instafailing."
|
10
|
+
s.description = "A progress-formatter with a little more info: Each Scenario is one line and the time is measured. Additionally, errors are shown immediately to be a little like instafail.
|
11
|
+
|
12
|
+
The Formatter is ideal for Jenkins line-by-line output."
|
11
13
|
|
12
14
|
s.authors = ["Matthias Viehweger"]
|
13
15
|
s.email = 'kronn@kronn.de'
|
14
16
|
s.homepage = 'http://github.com/kronn/cucumber-timed_formatter'
|
15
|
-
s.
|
17
|
+
s.license = 'MIT'
|
16
18
|
|
17
19
|
s.require_paths = ["lib"]
|
18
20
|
s.files = `git ls-files`.split("\n") - ['.gitignore']
|
19
21
|
# s.test_files = `git ls-files test`.split("\n")
|
20
22
|
|
21
|
-
s.rdoc_options = ['--charset=utf-8', '--fmt=shtml', '--all']
|
23
|
+
# s.rdoc_options = ['--charset=utf-8', '--fmt=shtml', '--all']
|
24
|
+
s.rdoc_options = ['--charset=utf-8', '--all']
|
22
25
|
# s.extra_rdoc_files = []
|
23
26
|
|
24
|
-
s.add_dependency 'cucumber', '~>
|
27
|
+
s.add_dependency 'cucumber', '~> 2.0'
|
25
28
|
|
26
29
|
# for release and doc generation, more less optional
|
27
30
|
# s.add_development_dependency 'rake'
|
data/lib/timed.rb
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
require 'cucumber/formatter/progress'
|
2
2
|
|
3
|
+
# Extend Cucumber's builtin formats, so that this
|
4
|
+
# formatter can be used with --format timed
|
5
|
+
require 'cucumber/cli/options'
|
6
|
+
|
7
|
+
Cucumber::Cli::Options::BUILTIN_FORMATS['timed'] = [
|
8
|
+
"Cucumber::Formatter::Timed",
|
9
|
+
"A progress-formatter with a little more info, instafailing and line-wise output"
|
10
|
+
]
|
11
|
+
|
3
12
|
module Cucumber
|
4
13
|
module Formatter
|
5
14
|
class Timed < Progress
|
@@ -21,16 +30,17 @@ module Cucumber
|
|
21
30
|
@duration += Time.now - @my_time
|
22
31
|
end
|
23
32
|
|
24
|
-
def
|
33
|
+
def after_test_step(test_step, result)
|
25
34
|
super
|
26
|
-
|
27
|
-
|
35
|
+
|
36
|
+
unless result.ok?
|
37
|
+
error_msg = "#{result.exception.message} (#{result.exception.class.name})\n#{result.exception.backtrace.join("\n")}"
|
28
38
|
|
29
39
|
@io.puts <<-EOMESSAGE
|
30
40
|
|
31
|
-
#{format_string(
|
41
|
+
#{format_string(test_step.action_location, :comment)}
|
32
42
|
|
33
|
-
#{format_string(error_msg,
|
43
|
+
#{format_string(error_msg, result.to_sym)}
|
34
44
|
|
35
45
|
EOMESSAGE
|
36
46
|
end
|
metadata
CHANGED
@@ -1,86 +1,69 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-timed_formatter
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 1
|
10
|
-
version: 0.1.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Matthias Viehweger
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2016-11-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: cucumber
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 11
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 2
|
32
|
-
version: "1.2"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
33
20
|
type: :runtime
|
34
|
-
|
35
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
description: |-
|
28
|
+
A progress-formatter with a little more info: Each Scenario is one line and the time is measured. Additionally, errors are shown immediately to be a little like instafail.
|
29
|
+
|
30
|
+
The Formatter is ideal for Jenkins line-by-line output.
|
36
31
|
email: kronn@kronn.de
|
37
32
|
executables: []
|
38
|
-
|
39
33
|
extensions: []
|
40
|
-
|
41
34
|
extra_rdoc_files: []
|
42
|
-
|
43
|
-
|
44
|
-
- .rvmrc
|
35
|
+
files:
|
36
|
+
- ".rvmrc"
|
45
37
|
- Gemfile
|
38
|
+
- LICENSE
|
46
39
|
- README
|
47
40
|
- cucumber-timed_formatter.gemspec
|
48
41
|
- lib/cucumber-timed_formatter/version.rb
|
49
42
|
- lib/timed.rb
|
50
43
|
homepage: http://github.com/kronn/cucumber-timed_formatter
|
51
|
-
licenses:
|
52
|
-
|
44
|
+
licenses:
|
45
|
+
- MIT
|
46
|
+
metadata: {}
|
53
47
|
post_install_message:
|
54
|
-
rdoc_options:
|
55
|
-
- --charset=utf-8
|
56
|
-
- --
|
57
|
-
|
58
|
-
require_paths:
|
48
|
+
rdoc_options:
|
49
|
+
- "--charset=utf-8"
|
50
|
+
- "--all"
|
51
|
+
require_paths:
|
59
52
|
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
|
62
|
-
requirements:
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
63
55
|
- - ">="
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
version: "0"
|
69
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
|
-
requirements:
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
72
60
|
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
version: "0"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
78
63
|
requirements: []
|
79
|
-
|
80
|
-
|
81
|
-
rubygems_version: 1.8.24
|
64
|
+
rubyforge_project:
|
65
|
+
rubygems_version: 2.5.1
|
82
66
|
signing_key:
|
83
|
-
specification_version:
|
84
|
-
summary: A progress-formatter with a little more info
|
67
|
+
specification_version: 4
|
68
|
+
summary: A progress-formatter with a little more info, instafailing.
|
85
69
|
test_files: []
|
86
|
-
|