airborne_report 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +56 -0
- data/Rakefile +4 -0
- data/airborne_report.gemspec +32 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/airborne_report.rb +50 -0
- data/lib/airborne_report/json_file.rb +25 -0
- data/lib/airborne_report/message.rb +52 -0
- data/lib/airborne_report/report.rb +51 -0
- data/lib/airborne_report/rspec_html_formatter.rb +37 -0
- data/lib/airborne_report/rspec_json_formatter.rb +28 -0
- data/lib/airborne_report/version.rb +3 -0
- data/lib/airborne_report/view/report.html.haml +83 -0
- data/lib/airborne_report/view/style.css +41 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 341027d5bc0c0b14f5909a55dd9ace77581024d6
|
4
|
+
data.tar.gz: a770921562e20a30f7872d40e83fd3e9fd61f352
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8133f68adb5098ca288636bfa374a2dd477753c5e19c64e516766125e680485b39bd41733e47419cfef9de770995ed3b3540b9b51cb56627bcb7a57d4661e8cc
|
7
|
+
data.tar.gz: 4b9ee896cb80975d0183d6f917955188e1eb0b16671a65be2ff9c16e28a9be14543dc6c127502381e146b7746cca5a4633c0fc97d0e7eb142aa61ffe14949b3a
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at d.efimov@fun-box.ru. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Dmitry Efimov
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# AirborneReport
|
2
|
+
|
3
|
+
Generate reports on tests with the [airborne](https://rubygems.org/gems/airborne) gem.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
group :test do
|
11
|
+
gem 'airborne_report'
|
12
|
+
end
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install airborne_report
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
```
|
26
|
+
# spec/spec_helper.rb
|
27
|
+
require 'airborne_report'
|
28
|
+
```
|
29
|
+
|
30
|
+
```
|
31
|
+
bundle exec rspec --format AirborneReport::RspecJsonFormatter
|
32
|
+
```
|
33
|
+
|
34
|
+
or
|
35
|
+
|
36
|
+
```
|
37
|
+
bundle exec rspec --format AirborneReport::RspecHtmlFormatter
|
38
|
+
```
|
39
|
+
|
40
|
+
After that you can find the report in `report.json` or `report.html`.
|
41
|
+
|
42
|
+
## Development
|
43
|
+
|
44
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
45
|
+
|
46
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
47
|
+
|
48
|
+
## Contributing
|
49
|
+
|
50
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/funbox/airborne_report. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
51
|
+
|
52
|
+
|
53
|
+
## License
|
54
|
+
|
55
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
56
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'airborne_report/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'airborne_report'
|
8
|
+
spec.version = AirborneReport::VERSION
|
9
|
+
spec.authors = ['Dmitry Efimov']
|
10
|
+
spec.email = ['d.efimov@fun-box.ru']
|
11
|
+
|
12
|
+
spec.summary = 'Generate reports on Airborne tests.'
|
13
|
+
spec.description =
|
14
|
+
'This gem gives you RSpec formatters which let you generate HTML and JSON reports ' \
|
15
|
+
'if you use the airborne gem for your integration tests.'
|
16
|
+
|
17
|
+
spec.homepage = 'https://github.com/funbox/airborne_report'
|
18
|
+
spec.license = 'MIT'
|
19
|
+
|
20
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ['lib']
|
24
|
+
|
25
|
+
spec.add_runtime_dependency 'airborne'
|
26
|
+
spec.add_runtime_dependency 'multi_json'
|
27
|
+
spec.add_runtime_dependency 'haml'
|
28
|
+
|
29
|
+
spec.add_development_dependency 'bundler'
|
30
|
+
spec.add_development_dependency 'rake'
|
31
|
+
spec.add_development_dependency 'rspec'
|
32
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'airborne_report'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'airborne_report/version'
|
2
|
+
require 'airborne_report/message'
|
3
|
+
|
4
|
+
module AirborneReport
|
5
|
+
end
|
6
|
+
|
7
|
+
module Airborne
|
8
|
+
module RestClientRequester
|
9
|
+
alias origin_make_request make_request
|
10
|
+
|
11
|
+
def make_request(*args)
|
12
|
+
response = origin_make_request(*args)
|
13
|
+
save!(args, response)
|
14
|
+
response
|
15
|
+
rescue SocketError => error
|
16
|
+
wasted_save(args, response)
|
17
|
+
raise error
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def save!(args, response)
|
23
|
+
if response.is_a?(RestClient::Response)
|
24
|
+
full_save(response)
|
25
|
+
else
|
26
|
+
wasted_save(args, response)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def full_save(response)
|
31
|
+
request = response.request
|
32
|
+
AirborneReport::JsonFile.push(
|
33
|
+
location,
|
34
|
+
AirborneReport::Message.full(request, response).to_hash
|
35
|
+
)
|
36
|
+
end
|
37
|
+
|
38
|
+
def wasted_save(args, response)
|
39
|
+
url = get_url(args[1])
|
40
|
+
AirborneReport::JsonFile.push(
|
41
|
+
location,
|
42
|
+
AirborneReport::Message.wasted(args, response, url).to_hash
|
43
|
+
)
|
44
|
+
end
|
45
|
+
|
46
|
+
def location
|
47
|
+
inspect.to_s.split('(').last.split(')').first
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'multi_json'
|
2
|
+
|
3
|
+
module AirborneReport
|
4
|
+
class JsonFile
|
5
|
+
NAME = 'storage.json'.freeze
|
6
|
+
|
7
|
+
def self.save(json)
|
8
|
+
File.open(NAME, 'w') do |file|
|
9
|
+
file.write(MultiJson.dump(json))
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.push(key, value)
|
14
|
+
save('tests' => tests.merge(key => value))
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.tests
|
18
|
+
MultiJson.load(File.read(NAME))['tests']
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.destroy
|
22
|
+
File.delete(NAME)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'multi_json'
|
2
|
+
require 'airborne_report/json_file'
|
3
|
+
|
4
|
+
module AirborneReport
|
5
|
+
class Message
|
6
|
+
def initialize(message)
|
7
|
+
@message = message
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.full(request, response)
|
11
|
+
new(
|
12
|
+
'time' => Time.now,
|
13
|
+
'request' => {
|
14
|
+
'method' => request.method,
|
15
|
+
'url' => request.url,
|
16
|
+
'headers' => request.headers,
|
17
|
+
'body' => request.args
|
18
|
+
},
|
19
|
+
'response' => {
|
20
|
+
'headers' => response.headers,
|
21
|
+
'body' => MultiJson.load(response)
|
22
|
+
}
|
23
|
+
)
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.wasted(args, response, url)
|
27
|
+
new(
|
28
|
+
'time' => Time.now,
|
29
|
+
'request' => {
|
30
|
+
'method' => args[0],
|
31
|
+
'url' => url,
|
32
|
+
'headers' => args[2][:headers],
|
33
|
+
'body' => args[2][:body]
|
34
|
+
},
|
35
|
+
'response' => {
|
36
|
+
'body' => response
|
37
|
+
}
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.extra(example)
|
42
|
+
new(
|
43
|
+
'full_description' => example.full_description,
|
44
|
+
'status' => example.execution_result.status.to_s
|
45
|
+
)
|
46
|
+
end
|
47
|
+
|
48
|
+
def to_hash
|
49
|
+
@message
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module AirborneReport
|
2
|
+
class Report
|
3
|
+
def initialize(before_json, notification)
|
4
|
+
after_json = {}
|
5
|
+
statuses = {
|
6
|
+
'all' => 0,
|
7
|
+
'passed' => 0,
|
8
|
+
'failed' => 0,
|
9
|
+
'pending' => 0
|
10
|
+
}
|
11
|
+
|
12
|
+
notification.examples.map do |example|
|
13
|
+
location = example.metadata[:location]
|
14
|
+
after_json[location] = craft_example(before_json, location, example)
|
15
|
+
statuses = increment_statuses(statuses, example)
|
16
|
+
end
|
17
|
+
|
18
|
+
@json = {
|
19
|
+
'statuses' => statuses,
|
20
|
+
'tests' => after_json
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.blank
|
25
|
+
{
|
26
|
+
'tests' => {}
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
def to_hash
|
31
|
+
@json
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
|
36
|
+
def craft_example(before_json, location, example)
|
37
|
+
if before_json[location]
|
38
|
+
Message.extra(example).to_hash.merge(before_json[location])
|
39
|
+
else
|
40
|
+
Message.extra(example).to_hash
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def increment_statuses(old_statuses, example)
|
45
|
+
new_statuses = old_statuses
|
46
|
+
new_statuses['all'] += 1
|
47
|
+
new_statuses[example.execution_result.status.to_s] += 1
|
48
|
+
new_statuses
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'rspec/core/formatters/base_formatter'
|
2
|
+
require 'haml'
|
3
|
+
require 'airborne_report/json_file'
|
4
|
+
require 'airborne_report/report'
|
5
|
+
|
6
|
+
module AirborneReport
|
7
|
+
class RspecHtmlFormatter < RSpec::Core::Formatters::BaseFormatter
|
8
|
+
RSpec::Core::Formatters.register self, :start, :stop
|
9
|
+
|
10
|
+
def start(_notification)
|
11
|
+
AirborneReport::JsonFile.save(Report.blank)
|
12
|
+
end
|
13
|
+
|
14
|
+
def stop(notification)
|
15
|
+
tests = AirborneReport::JsonFile.tests
|
16
|
+
AirborneReport::JsonFile.destroy
|
17
|
+
|
18
|
+
report = Report.new(tests, notification).to_hash
|
19
|
+
craft_html(report)
|
20
|
+
end
|
21
|
+
|
22
|
+
def craft_html(report)
|
23
|
+
contents = File.read(File.expand_path('../view/report.html.haml', __FILE__))
|
24
|
+
html = "<style>\n#{File.read(File.expand_path('../view/style.css', __FILE__))}\n</style>\n"
|
25
|
+
i = 0
|
26
|
+
html += Haml::Engine.new(contents).render(
|
27
|
+
Object.new,
|
28
|
+
:@tests => report['tests'],
|
29
|
+
:@statuses => report['statuses'],
|
30
|
+
:@i => i
|
31
|
+
)
|
32
|
+
File.open('report.html', 'w') do |file|
|
33
|
+
file.write(html)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'rspec/core/formatters/base_formatter'
|
2
|
+
require 'multi_json'
|
3
|
+
require 'airborne_report/json_file'
|
4
|
+
require 'airborne_report/report'
|
5
|
+
|
6
|
+
module AirborneReport
|
7
|
+
class RspecJsonFormatter < RSpec::Core::Formatters::BaseFormatter
|
8
|
+
RSpec::Core::Formatters.register self, :start, :stop
|
9
|
+
|
10
|
+
def start(_notification)
|
11
|
+
AirborneReport::JsonFile.save(Report.blank)
|
12
|
+
end
|
13
|
+
|
14
|
+
def stop(notification)
|
15
|
+
tests = AirborneReport::JsonFile.tests
|
16
|
+
AirborneReport::JsonFile.destroy
|
17
|
+
|
18
|
+
report = Report.new(tests, notification).to_hash
|
19
|
+
craft_json(report)
|
20
|
+
end
|
21
|
+
|
22
|
+
def craft_json(report)
|
23
|
+
File.open('report.json', 'w') do |file|
|
24
|
+
file.write(MultiJson.dump(report))
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title= Time.now
|
5
|
+
%meta{charset: "utf-8"}
|
6
|
+
%body
|
7
|
+
%div
|
8
|
+
%b
|
9
|
+
all:
|
10
|
+
= @statuses["all"]
|
11
|
+
%b{class: "passed"}
|
12
|
+
passed:
|
13
|
+
= @statuses["passed"]
|
14
|
+
%b{class: "failed"}
|
15
|
+
failed:
|
16
|
+
= @statuses["failed"]
|
17
|
+
%b{class: "pending"}
|
18
|
+
pending:
|
19
|
+
= @statuses["pending"]
|
20
|
+
- @tests.each do |example|
|
21
|
+
%details
|
22
|
+
%summary{class: "collapse #{example.last['status']}"}
|
23
|
+
= example.last['full_description']
|
24
|
+
%div
|
25
|
+
%div{class: 'section'}
|
26
|
+
- if example.last['request'] && example.last['response']['body']
|
27
|
+
%div
|
28
|
+
%b path:
|
29
|
+
= example.first
|
30
|
+
%div
|
31
|
+
%b time:
|
32
|
+
= example.last['time']
|
33
|
+
%div{class: 'section'}
|
34
|
+
%div
|
35
|
+
%b request.method:
|
36
|
+
= example.last['request']['method']
|
37
|
+
%div
|
38
|
+
%b request.url:
|
39
|
+
= example.last['request']['url']
|
40
|
+
%div
|
41
|
+
%b request.headers:
|
42
|
+
= example.last['request']['headers']
|
43
|
+
%div
|
44
|
+
%b request.body:
|
45
|
+
%xmp
|
46
|
+
= example.last['request']['body']
|
47
|
+
%div{class: 'section'}
|
48
|
+
%div
|
49
|
+
%b response.headers:
|
50
|
+
= example.last['response']['headers']
|
51
|
+
%div
|
52
|
+
%b response.body:
|
53
|
+
%xmp
|
54
|
+
= example.last['response']['body']
|
55
|
+
- elsif example.last['request']
|
56
|
+
%div
|
57
|
+
%b path:
|
58
|
+
= example.first
|
59
|
+
%div{class: 'section'}
|
60
|
+
%div
|
61
|
+
%b request.method:
|
62
|
+
= example.last['request']['method']
|
63
|
+
%div
|
64
|
+
%b request.url:
|
65
|
+
= example.last['request']['url']
|
66
|
+
%div
|
67
|
+
%b request.headers:
|
68
|
+
= example.last['request']['headers']
|
69
|
+
%div
|
70
|
+
%b request.body:
|
71
|
+
= example.last['request']['body']
|
72
|
+
%div{class: 'section'}
|
73
|
+
%div
|
74
|
+
Request failed
|
75
|
+
- elsif example.last['status'] == 'pending'
|
76
|
+
%div
|
77
|
+
%b path:
|
78
|
+
= example.first
|
79
|
+
- else
|
80
|
+
%div
|
81
|
+
%b path:
|
82
|
+
= example.first
|
83
|
+
Test failed
|
@@ -0,0 +1,41 @@
|
|
1
|
+
summary {
|
2
|
+
margin: 10px;
|
3
|
+
}
|
4
|
+
|
5
|
+
summary:hover {
|
6
|
+
background: #e1e1e1;
|
7
|
+
}
|
8
|
+
|
9
|
+
.passed {
|
10
|
+
color: green;
|
11
|
+
}
|
12
|
+
|
13
|
+
.failed {
|
14
|
+
color: red;
|
15
|
+
}
|
16
|
+
|
17
|
+
.pending {
|
18
|
+
color: orange;
|
19
|
+
}
|
20
|
+
|
21
|
+
.collapse {
|
22
|
+
cursor: pointer;
|
23
|
+
display: block;
|
24
|
+
background: white;
|
25
|
+
}
|
26
|
+
|
27
|
+
.collapse + input {
|
28
|
+
display: none; /* hide the checkboxes */
|
29
|
+
}
|
30
|
+
|
31
|
+
.collapse + input + div {
|
32
|
+
display: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
.collapse + input:checked + div {
|
36
|
+
display: block;
|
37
|
+
}
|
38
|
+
|
39
|
+
.section {
|
40
|
+
padding-top: 10px;
|
41
|
+
}
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: airborne_report
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dmitry Efimov
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: airborne
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: multi_json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: haml
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: This gem gives you RSpec formatters which let you generate HTML and JSON
|
98
|
+
reports if you use the airborne gem for your integration tests.
|
99
|
+
email:
|
100
|
+
- d.efimov@fun-box.ru
|
101
|
+
executables: []
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- CODE_OF_CONDUCT.md
|
107
|
+
- Gemfile
|
108
|
+
- LICENSE.txt
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- airborne_report.gemspec
|
112
|
+
- bin/console
|
113
|
+
- bin/setup
|
114
|
+
- lib/airborne_report.rb
|
115
|
+
- lib/airborne_report/json_file.rb
|
116
|
+
- lib/airborne_report/message.rb
|
117
|
+
- lib/airborne_report/report.rb
|
118
|
+
- lib/airborne_report/rspec_html_formatter.rb
|
119
|
+
- lib/airborne_report/rspec_json_formatter.rb
|
120
|
+
- lib/airborne_report/version.rb
|
121
|
+
- lib/airborne_report/view/report.html.haml
|
122
|
+
- lib/airborne_report/view/style.css
|
123
|
+
homepage: https://github.com/funbox/airborne_report
|
124
|
+
licenses:
|
125
|
+
- MIT
|
126
|
+
metadata: {}
|
127
|
+
post_install_message:
|
128
|
+
rdoc_options: []
|
129
|
+
require_paths:
|
130
|
+
- lib
|
131
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
requirements: []
|
142
|
+
rubyforge_project:
|
143
|
+
rubygems_version: 2.5.1
|
144
|
+
signing_key:
|
145
|
+
specification_version: 4
|
146
|
+
summary: Generate reports on Airborne tests.
|
147
|
+
test_files: []
|