croaky-rspec 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/README.md +23 -7
- data/croaky-rspec.gemspec +2 -2
- data/lib/croaky/rspec/croaky_formatter.rb +6 -0
- data/lib/croaky/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9b40aca9ee81c3bdec2f4f7e0e6897fff9b5a9fcf3589d086716089d3b67fa8
|
4
|
+
data.tar.gz: 6664d2e782b19ced2ab7e7149b6caf0925954eac998f1780ebda7871d7e7b4e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4db00879f3bb750293f3b59617470a895e7fa35d630ada1519293f2b10c77736d204380b64d3fb344e20f473ed8ea1723595f4df9dc16bdb317a79980cc8154
|
7
|
+
data.tar.gz: 4262baa0d0e0bb1afbdd56fa0a99428f2b9b9470642809ea901abae7bc6141f970177673626a40ea96eb6902d3cd51edd05685ec4590ae4dd899f2592f35aaff
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
croaky-rspec (0.
|
4
|
+
croaky-rspec (0.2.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -55,7 +55,7 @@ DEPENDENCIES
|
|
55
55
|
croaky-rspec!
|
56
56
|
rake (~> 12.0)
|
57
57
|
rspec (~> 3.0)
|
58
|
-
rubocop
|
58
|
+
rubocop (= 0.89.1)
|
59
59
|
simplecov
|
60
60
|
|
61
61
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
# Croaky::Rspec
|
2
2
|
|
3
|
-
|
3
|
+
[](https://badge.fury.io/rb/croaky-rspec)
|
4
|
+
[](https://travis-ci.org/sayantam/croaky-rspec)
|
4
5
|
|
5
|
-
|
6
|
+
RSpec 3.0 formatter that croaks only for failed examples. The formatter captures stdout and stderr during an example
|
7
|
+
run, and dumps them for failed examples only. Progress is shown as per progress formatter.
|
8
|
+
|
9
|
+
It detects a JRuby platform and captures output from Java as well. For example, it will capture console output from a
|
10
|
+
logger like ``log4j``, as well as Java IO streams such as ``java.lang.System.out``, and ``java.lang.System.err``.
|
6
11
|
|
7
12
|
## Installation
|
8
13
|
|
@@ -22,17 +27,27 @@ Or install it yourself as:
|
|
22
27
|
|
23
28
|
## Usage
|
24
29
|
|
25
|
-
|
30
|
+
This is meant to be an RSpec >= 3.0 formatter. The fully qualified class name is ``Croaky::RSpec::CroakyFormatter``.
|
31
|
+
Use RSpec's ``format`` option to specify this formatter.
|
32
|
+
|
33
|
+
```bash
|
34
|
+
$ bundle exec rspec -f Croaky::RSpec::CroakyFormatter
|
35
|
+
```
|
26
36
|
|
27
37
|
## Development
|
28
38
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
|
39
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
|
40
|
+
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
41
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version,
|
42
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version,
|
43
|
+
update the version number in `version.rb`, and then push to origin master. This will trigger a CI flow, that
|
44
|
+
will run the specs, and upon success, it will release a new gem to [rubygems.org](https://rubygems.org).
|
32
45
|
|
33
46
|
## Contributing
|
34
47
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
48
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sayantam/croaky-rspec. This project is
|
49
|
+
intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
|
50
|
+
the [code of conduct](https://github.com/[USERNAME]/croaky-rspec/blob/master/CODE_OF_CONDUCT.md).
|
36
51
|
|
37
52
|
|
38
53
|
## License
|
@@ -41,4 +56,5 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
41
56
|
|
42
57
|
## Code of Conduct
|
43
58
|
|
44
|
-
Everyone interacting in the Croaky::Rspec project's codebases, issue trackers, chat rooms and mailing lists is
|
59
|
+
Everyone interacting in the Croaky::Rspec project's codebases, issue trackers, chat rooms and mailing lists is
|
60
|
+
expected to follow the [code of conduct](https://github.com/[USERNAME]/croaky-rspec/blob/master/CODE_OF_CONDUCT.md).
|
data/croaky-rspec.gemspec
CHANGED
@@ -12,8 +12,8 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.summary = 'RSpec formatter that croaks only for failed examples.'
|
14
14
|
spec.description = <<-DESC
|
15
|
-
|
16
|
-
Progress is shown as per progress formatter
|
15
|
+
RSpec formatter that captures stdout and stderr during an example run, and dumps them for failed examples only.
|
16
|
+
Progress is shown as per progress formatter.
|
17
17
|
DESC
|
18
18
|
spec.homepage = 'https://github.com/sayantam/croaky-rspec'
|
19
19
|
spec.license = 'MIT'
|
data/lib/croaky/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: croaky-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sayantam Dey
|
@@ -11,8 +11,8 @@ cert_chain: []
|
|
11
11
|
date: 2020-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
|
-
|
15
|
-
Progress is shown as per progress formatter
|
14
|
+
RSpec formatter that captures stdout and stderr during an example run, and dumps them for failed examples only.
|
15
|
+
Progress is shown as per progress formatter.
|
16
16
|
email:
|
17
17
|
- sayantam@gmail.com
|
18
18
|
executables: []
|