blinka-reporter 0.5.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +18 -0
- data/.github/release.yml +9 -0
- data/.github/workflows/main.yml +50 -0
- data/.gitignore +29 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +167 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +163 -0
- data/Rakefile +7 -0
- data/bin/blinka_reporter +7 -0
- data/bin/setup +15 -0
- data/blinka_reporter.gemspec +41 -0
- data/lib/blinka_reporter/blinka.rb +172 -0
- data/lib/blinka_reporter/cli.rb +66 -0
- data/lib/blinka_reporter/client.rb +128 -0
- data/lib/blinka_reporter/config.rb +37 -0
- data/lib/blinka_reporter/error.rb +3 -0
- data/lib/blinka_reporter/minitest_adapter.rb +92 -0
- data/lib/blinka_reporter/tap.rb +51 -0
- data/lib/blinka_reporter/version.rb +1 -1
- data/lib/blinka_reporter.rb +4 -0
- data/lib/minitest/blinka_plugin.rb +14 -82
- data/package.json +22 -0
- data/yarn.lock +481 -0
- metadata +41 -5
- data/lib/blinka_client.rb +0 -195
- data/lib/blinka_minitest.rb +0 -90
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 169cf0a2be6fe787a73ecb591ff4e271ead078adc25cfc762317d4de32871a00
|
4
|
+
data.tar.gz: e54f8c1b7c9521c42ff07c24ddef03489ebdfce0619b5006d0aa26d1eac7f3fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd66de441531a066ed462e241670b0ea2904be084db2dd66819376e78f93d37bb5233709d634048727c8df9fd33e88a0820609c0e38df23f7052c052957cba2b
|
7
|
+
data.tar.gz: 28ee703aeb5a4bdf3ddfea38d443ad9db0692b370cbad8d744c9bb85e6669107723454f15cac24f6bc483b90315a55828776c103724a76aadc6f1458ab305557
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
3
|
+
# Please see the documentation for all configuration options:
|
4
|
+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
5
|
+
|
6
|
+
version: 2
|
7
|
+
updates:
|
8
|
+
- package-ecosystem: "bundler"
|
9
|
+
directory: "/"
|
10
|
+
schedule:
|
11
|
+
interval: "daily"
|
12
|
+
target-branch: "main"
|
13
|
+
|
14
|
+
- package-ecosystem: "npm"
|
15
|
+
directory: "/"
|
16
|
+
schedule:
|
17
|
+
interval: "daily"
|
18
|
+
target-branch: "main"
|
data/.github/release.yml
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
name: Main
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
workflow_dispatch:
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
tests:
|
8
|
+
name: Tests
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
fail-fast: false
|
12
|
+
matrix:
|
13
|
+
ruby: ["2.6", "2.7", "3.0", "3.1"]
|
14
|
+
|
15
|
+
steps:
|
16
|
+
- name: Checkout code
|
17
|
+
uses: actions/checkout@v2
|
18
|
+
|
19
|
+
- name: Setup Ruby
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: ${{ matrix.ruby }}
|
23
|
+
bundler-cache: true
|
24
|
+
|
25
|
+
- name: Generate lockfile
|
26
|
+
run: bundle lock
|
27
|
+
|
28
|
+
- name: Run Setup
|
29
|
+
run: ./bin/setup
|
30
|
+
|
31
|
+
- name: Run tests
|
32
|
+
env:
|
33
|
+
BLINKA_PATH: ./results.json
|
34
|
+
run: bundle exec rake test
|
35
|
+
|
36
|
+
- name: Build and install gem
|
37
|
+
if: always()
|
38
|
+
run: gem build blinka_reporter.gemspec && gem install blinka-reporter-*.gem
|
39
|
+
|
40
|
+
- name: Report to Blinka
|
41
|
+
if: always()
|
42
|
+
run: |
|
43
|
+
blinka_reporter \
|
44
|
+
--blinka \
|
45
|
+
--tap \
|
46
|
+
--path ./results.json \
|
47
|
+
--repository davidwessman/blinka_reporter \
|
48
|
+
--tag ${{ matrix.ruby }} \
|
49
|
+
--team-id ${{ secrets.BLINKA_TEAM_ID }} \
|
50
|
+
--team-secret ${{ secrets.BLINKA_TEAM_SECRET }}
|
data/.gitignore
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor # or operating system, you probably want to add a global ignore instead:
|
4
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
5
|
+
|
6
|
+
# Ignore bundler config.
|
7
|
+
/.bundle
|
8
|
+
|
9
|
+
# Environment
|
10
|
+
/.env
|
11
|
+
|
12
|
+
# Ignore all logfiles and tempfiles.
|
13
|
+
/log/*
|
14
|
+
/tmp/*
|
15
|
+
!/log/.keep
|
16
|
+
!/tmp/.keep
|
17
|
+
|
18
|
+
# Ignore all gems
|
19
|
+
/*.gem
|
20
|
+
Gemfile.lock
|
21
|
+
|
22
|
+
.byebug_history
|
23
|
+
/node_modules
|
24
|
+
yarn-debug.log*
|
25
|
+
yarn-error.log*
|
26
|
+
.yarn-integrity
|
27
|
+
|
28
|
+
/blinka_results.json
|
29
|
+
/results.json
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.1
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## [Unreleased]
|
9
|
+
|
10
|
+
## [0.7.0] - 2022-03-06
|
11
|
+
|
12
|
+
- Support multiple `--path` calls to combine results from multiple files.
|
13
|
+
- Replaces `BLINKA_JSON` and `BLINKA_APPEND` with `BLINKA_PATH`.
|
14
|
+
- Adds all reporter options as CLI-options instead of using environment variables. -`BLINKA_REPOSITORY` => `--repository`
|
15
|
+
|
16
|
+
## [0.6.1] - 2022-02-27
|
17
|
+
|
18
|
+
- Rspec
|
19
|
+
- Improve handling of newlines in backtrace
|
20
|
+
- Adds more testing
|
21
|
+
- Handles multiple screenshot tags
|
22
|
+
|
23
|
+
## [0.6.0] - 2022-02-20
|
24
|
+
|
25
|
+
- Adds support for Rspec.
|
26
|
+
- Remove support for `BLINKA_REPORT`, instead use `bundle exec blinka-reporter --blinka` for reporting.
|
27
|
+
- Remove `BLINKA_TAP` and replace with `bundle exec blinka-reporter --tap`.
|
28
|
+
- Restructure gem internals.
|
29
|
+
- Support Rspec screenshots.
|
30
|
+
|
31
|
+
## [0.5.2] - 2022-02-01
|
32
|
+
|
33
|
+
- Require MFA for pushing to [Rubygems](https://guides.rubygems.org/mfa-requirement-opt-in/)
|
34
|
+
|
35
|
+
## [0.5.1] - 2022-02-01
|
36
|
+
|
37
|
+
- Look for screenshots in `Capybara.save_path` to allow different output folders for screenshots.
|
38
|
+
- For example a Rails application can be configured with `Capybara.save_path = ENV.fetch('CAPYBARA_ARTIFACTS', './tmp/capybara')` which can then be overriden in CI.
|
39
|
+
|
40
|
+
## [0.5.0] - 2022-01-21
|
41
|
+
|
42
|
+
### Added
|
43
|
+
|
44
|
+
- `BLINKA_APPEND` allows multiple test-runs to be appended to the same JSON-file.
|
45
|
+
|
46
|
+
## [0.4.0] - 2021-03-27
|
47
|
+
|
48
|
+
### Changed
|
49
|
+
|
50
|
+
- Change tempus of failing results from `failed` to `fail`.
|
51
|
+
|
52
|
+
## [0.3.6] - 2021-03-25
|
53
|
+
|
54
|
+
### Changed
|
55
|
+
|
56
|
+
- Removes dependency on mimemagic.
|
57
|
+
- Only allow images of `jpeg` or `png` format, handles their mime-types by extension.
|
58
|
+
|
59
|
+
## [0.3.5] - 2021-03-11
|
60
|
+
|
61
|
+
### Changed
|
62
|
+
|
63
|
+
- Move commit and tag to JSON-report instead of setting in the reporting client.
|
64
|
+
This allows the report to be made by a general script instead of in the test environment. In preparation of supporting Github Actions without access to secrets.
|
65
|
+
|
66
|
+
## [0.3.4] - 2021-02-24
|
67
|
+
|
68
|
+
### Changed
|
69
|
+
|
70
|
+
- Reported test cases now include the line in the file where they are defined, previously the line number was connected to the backtrace.
|
71
|
+
|
72
|
+
## [0.3.3] - 2021-02-13
|
73
|
+
|
74
|
+
### Added
|
75
|
+
|
76
|
+
- Use `HEROKU_TEST_RUN_COMMIT_VERSION` defined on Heroku CI when reporting test results to Blinka.
|
77
|
+
|
78
|
+
## [0.3.2] - 2021-02-12
|
79
|
+
|
80
|
+
### Fixed
|
81
|
+
|
82
|
+
- Allow to report with `BLINKA_REPORT` while using in tests `WebMock`.
|
83
|
+
|
84
|
+
## [0.3.1] - 2021-02-12
|
85
|
+
|
86
|
+
### Added
|
87
|
+
|
88
|
+
- Setting `BLINKA_REPORT` with credentials allow report to be sent to Blinka directly at the end of the test run.
|
89
|
+
|
90
|
+
## [0.3.0] - 2021-02-08
|
91
|
+
|
92
|
+
### Changed
|
93
|
+
|
94
|
+
- BREAKING 🚨 - Require setting environment variable `BLINKA_JSON` to any value to generate `blinka_results.json` used for reporting to Blinka.
|
95
|
+
|
96
|
+
## [0.2.1] - 2021-02-08
|
97
|
+
|
98
|
+
### Changed
|
99
|
+
|
100
|
+
- Raise error if configuration to report to Blinka is missing when reporting.
|
101
|
+
|
102
|
+
## [0.2.0] - 2021-02-07
|
103
|
+
|
104
|
+
### Added
|
105
|
+
|
106
|
+
- Adds support for reporting test results in TAP-format.
|
107
|
+
|
108
|
+
## [0.1.1] - 2021-02-04
|
109
|
+
|
110
|
+
### Changed
|
111
|
+
|
112
|
+
- Correct the homepage on rubygems.
|
113
|
+
|
114
|
+
## [0.1.0] - 2021-02-03
|
115
|
+
|
116
|
+
### Added
|
117
|
+
|
118
|
+
- Support for adding tag to report using `BLINKA_TAG` environment variable.
|
119
|
+
|
120
|
+
### Removed
|
121
|
+
|
122
|
+
- No longer support `BLINKA_BRANCH`, use `BLINKA_TAG` instead.
|
123
|
+
|
124
|
+
## [0.0.3] - 2021-02-02
|
125
|
+
|
126
|
+
### Added
|
127
|
+
|
128
|
+
- Allow supplying which git commit sha to report.
|
129
|
+
|
130
|
+
## [0.0.2] - 2021-02-01
|
131
|
+
|
132
|
+
### Added
|
133
|
+
|
134
|
+
- Debug print for which commit hash was reported.
|
135
|
+
|
136
|
+
## [0.0.1] - 2021-01-31
|
137
|
+
|
138
|
+
### Added
|
139
|
+
|
140
|
+
- Setup LICENSE and CHANGELOG.
|
141
|
+
|
142
|
+
### Fixed
|
143
|
+
|
144
|
+
- Handle inconsistency in source_location of test result in Minitest for different versions.
|
145
|
+
|
146
|
+
[unreleased]: https://github.com/davidwessman/blinka_reporter/compare/v0.7.0...HEAD
|
147
|
+
[0.7.0]: https://github.com/davidwessman/blinka_reporter/compare/v0.6.1...v0.7.0
|
148
|
+
[0.6.1]: https://github.com/davidwessman/blinka_reporter/compare/v0.6.0...v0.6.1
|
149
|
+
[0.6.0]: https://github.com/davidwessman/blinka_reporter/compare/v0.5.2...v0.6.0
|
150
|
+
[0.5.2]: https://github.com/davidwessman/blinka_reporter/compare/v0.5.1...v0.5.2
|
151
|
+
[0.5.1]: https://github.com/davidwessman/blinka_reporter/compare/v0.5.0...v0.5.1
|
152
|
+
[0.5.0]: https://github.com/davidwessman/blinka_reporter/compare/v0.4.0...v0.5.0
|
153
|
+
[0.4.0]: https://github.com/davidwessman/blinka_reporter/compare/v0.3.6...v0.4.0
|
154
|
+
[0.3.6]: https://github.com/davidwessman/blinka_reporter/compare/v0.3.5...v0.3.6
|
155
|
+
[0.3.5]: https://github.com/davidwessman/blinka_reporter/compare/v0.3.4...v0.3.5
|
156
|
+
[0.3.4]: https://github.com/davidwessman/blinka_reporter/compare/v0.3.3...v0.3.4
|
157
|
+
[0.3.3]: https://github.com/davidwessman/blinka_reporter/compare/v0.3.2...v0.3.3
|
158
|
+
[0.3.2]: https://github.com/davidwessman/blinka_reporter/compare/v0.3.1...v0.3.2
|
159
|
+
[0.3.1]: https://github.com/davidwessman/blinka_reporter/compare/v0.3.0...v0.3.1
|
160
|
+
[0.3.0]: https://github.com/davidwessman/blinka_reporter/compare/v0.2.1...v0.3.0
|
161
|
+
[0.2.1]: https://github.com/davidwessman/blinka_reporter/compare/v0.2.0...v0.2.1
|
162
|
+
[0.2.0]: https://github.com/davidwessman/blinka_reporter/compare/v0.1.1...v0.2.0
|
163
|
+
[0.1.1]: https://github.com/davidwessman/blinka_reporter/compare/v0.1.0...v0.1.1
|
164
|
+
[0.1.0]: https://github.com/davidwessman/blinka_reporter/compare/v0.0.3...v0.1.0
|
165
|
+
[0.0.3]: https://github.com/davidwessman/blinka_reporter/compare/v0.0.2...v0.0.3
|
166
|
+
[0.0.2]: https://github.com/davidwessman/blinka_reporter/compare/v0.0.1...v0.0.2
|
167
|
+
[0.0.1]: https://github.com/davidwessman/blinka_reporter/releases/tag/v0.0.1
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 David Wessman
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
# Blinka reporter
|
2
|
+
|
3
|
+
## What does this gem do?
|
4
|
+
|
5
|
+
Generate a test results report for Minitest or interpret a junit-report from Rspec.
|
6
|
+
These results can then be [reported](#how-to-send-report-to-blinka) to [Blinka](#what-is-blinka) which posts your test results directly in your Github Pull Requests.
|
7
|
+
|
8
|
+
## How do I install the gem?
|
9
|
+
|
10
|
+
Run
|
11
|
+
|
12
|
+
```sh
|
13
|
+
gem install blinka-reporter
|
14
|
+
```
|
15
|
+
|
16
|
+
or add to your Gemfile
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem 'blinka-reporter', '~> 0.7.0'
|
20
|
+
```
|
21
|
+
|
22
|
+
## Which ruby testing frameworks are supported?
|
23
|
+
|
24
|
+
- Minitest
|
25
|
+
- Rspec
|
26
|
+
|
27
|
+
> Please reach out for other frameworks or create a reporter yourself.
|
28
|
+
|
29
|
+
## What is Blinka?
|
30
|
+
|
31
|
+
Blinka is a web service developed by [@davidwessman](https://github.com/davidwessman) to store test results from CI and report interesting results back to Github, right in the pull request.
|
32
|
+
|
33
|
+
## How to generate test report in the right format?
|
34
|
+
|
35
|
+
### Minitest
|
36
|
+
|
37
|
+
```sh
|
38
|
+
BLINKA_PATH=./tests.json bundle exec rails test
|
39
|
+
```
|
40
|
+
|
41
|
+
Output as `./tests.json`.
|
42
|
+
|
43
|
+
### Rspec
|
44
|
+
|
45
|
+
Make sure [rspec_junit_formatter](https://github.com/sj26/rspec_junit_formatter) is installed.
|
46
|
+
|
47
|
+
```sh
|
48
|
+
bundle exec rspec --formatter RspecJunitFormatter --out ./rspec.xml
|
49
|
+
```
|
50
|
+
|
51
|
+
## How to send report to Blinka?
|
52
|
+
|
53
|
+
1. Output your test results as described [above](#how-to-generate-test-report-in-the-right-format).
|
54
|
+
1. `bundle exec blinka_reporter --path {./blinka_results.json,./rspec.xml} --blinka --team-id <BLINKA_TEAM_ID> --team-secret <BLINKA_TEAM_SECRET> --repository davidwessman/blinka_reporter`
|
55
|
+
|
56
|
+
## How can I send report in Github Action?
|
57
|
+
|
58
|
+
Add a step to your Github Action Workflow after running tests:
|
59
|
+
|
60
|
+
```yaml
|
61
|
+
- name: Minitest
|
62
|
+
env:
|
63
|
+
BLINKA_JSON: true
|
64
|
+
run: bundle exec rake test
|
65
|
+
|
66
|
+
- name: Report minitest to Blinka
|
67
|
+
run: |
|
68
|
+
bundle exec blinka_reporter \
|
69
|
+
--path ./blinka_results.json \
|
70
|
+
--blinka \
|
71
|
+
--commit ${{ github.event.pull_request.head.sha || github.sha }} \
|
72
|
+
--repository davidwessman/blinka_reporter \
|
73
|
+
--team-id ${{ secrets.BLINKA_TEAM_ID }} \
|
74
|
+
--team-secret ${{ secrets.BLINKA_TEAM_SECRET }}
|
75
|
+
```
|
76
|
+
|
77
|
+
```yaml
|
78
|
+
- name: Rspec
|
79
|
+
run: bundle exec rspec --formatter RspecJunitFormatter --out ./rspec.xml
|
80
|
+
- name: Report minitest to Blinka
|
81
|
+
run: |
|
82
|
+
bundle exec blinka_reporter \
|
83
|
+
--path ./rspec.xml \
|
84
|
+
--blinka \
|
85
|
+
--commit ${{ github.event.pull_request.head.sha || github.sha }} \
|
86
|
+
--repository davidwessman/blinka_reporter \
|
87
|
+
--team-id ${{ secrets.BLINKA_TEAM_ID }} \
|
88
|
+
--team-secret ${{ secrets.BLINKA_TEAM_SECRET }}
|
89
|
+
```
|
90
|
+
|
91
|
+
`--tag` is optional and can be used to separate different reports, for example when using a build matrix.
|
92
|
+
|
93
|
+
## How to make multiple test runs into one report?
|
94
|
+
|
95
|
+
For example when running tests in parallel you might need to run system tests separately.
|
96
|
+
Output the test results to different paths with `BLINKA_PATH`.
|
97
|
+
|
98
|
+
```yaml
|
99
|
+
- name: System tests
|
100
|
+
env:
|
101
|
+
BLINKA_PATH: ./system_tests.json
|
102
|
+
PARALLEL_WORKERS: 1
|
103
|
+
run: bundle exec rails test:system
|
104
|
+
|
105
|
+
- name: Tests
|
106
|
+
env:
|
107
|
+
BLINKA_JSON: ./tests.json
|
108
|
+
run: bundle exec rails test
|
109
|
+
|
110
|
+
- name: Report to Blinka
|
111
|
+
run: |
|
112
|
+
bundle exec blinka_reporter \
|
113
|
+
--path ./system_tests.json \
|
114
|
+
--path ./tests.json \
|
115
|
+
--blinka \
|
116
|
+
--commit ${{ github.event.pull_request.head.sha || github.sha }} \
|
117
|
+
--repository davidwessman/blinka_reporter \
|
118
|
+
--team-id ${{ secrets.BLINKA_TEAM_ID }} \
|
119
|
+
--team-secret ${{ secrets.BLINKA_TEAM_SECRET }}
|
120
|
+
```
|
121
|
+
|
122
|
+
## How can I report tests in TAP-format?
|
123
|
+
|
124
|
+
TAP-format ([Test anything protocol](https://testanything.org)) is used to parse tests results on for example Heroku CI.
|
125
|
+
|
126
|
+
Generate your test results like [above](#how-to-generate-test-report-in-the-right-format),
|
127
|
+
replace `<path>` with your json or xml file.
|
128
|
+
|
129
|
+
```sh
|
130
|
+
bundle exec blinka_reporter --tap --path <path>
|
131
|
+
|
132
|
+
TAP version 13
|
133
|
+
1..14
|
134
|
+
ok 1 - test/test_blinka_minitest.rb - test_message
|
135
|
+
ok 2 - test/test_blinka_minitest.rb - test_image
|
136
|
+
ok 3 - test/test_blinka_minitest.rb - test_image_no_file
|
137
|
+
ok 4 - test/test_blinka_minitest.rb - test_report_with_image
|
138
|
+
ok 5 - test/test_blinka_minitest.rb - test_line
|
139
|
+
ok 6 - test/test_blinka_minitest.rb - test_backtrace
|
140
|
+
ok 7 - test/test_blinka_minitest.rb - test_line_no_failure
|
141
|
+
ok 8 - test/test_blinka_minitest.rb - test_report
|
142
|
+
ok 9 - test/test_blinka_minitest.rb - test_backtrace_no_failure
|
143
|
+
ok 10 - test/test_blinka_minitest.rb - test_kind_no_folder
|
144
|
+
ok 11 - test/test_blinka_minitest.rb - test_result
|
145
|
+
ok 12 - test/test_blinka_minitest.rb - test_kind
|
146
|
+
ok 13 - test/test_blinka_minitest.rb - test_message_no_failure
|
147
|
+
ok 14 - test/test_blinka_minitest.rb - test_source_location
|
148
|
+
```
|
149
|
+
|
150
|
+
# Development
|
151
|
+
|
152
|
+
## Release new version
|
153
|
+
|
154
|
+
1. Update version in [`CHANGELOG.md`](./CHANGELOG.md) and include changes.
|
155
|
+
1. Update version in [`lib/blinka_reporter/version.rb`](./lib/blinka_reporter/version.rb).
|
156
|
+
1. Create pull request and merge to default branch.
|
157
|
+
1. `gem build blinka_reporter.gemspec` (make sure it matches the bumped version).
|
158
|
+
1. `gem push blinka-reporter-{version}.gem` (had to use `--otp` because I could not enter it when prompted).
|
159
|
+
1. Create a release and tag on Github for history.
|
160
|
+
|
161
|
+
# License
|
162
|
+
|
163
|
+
`blinka-reporter` is licensed under the MIT license, see [LICENSE](LICENSE) for details.
|
data/Rakefile
ADDED
data/bin/blinka_reporter
ADDED
data/bin/setup
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
set -e
|
4
|
+
|
5
|
+
# CI-specific setup
|
6
|
+
if [ -n "$GITHUB_ACTIONS" ]; then
|
7
|
+
bundle config path vendor/bundle
|
8
|
+
bundle config jobs 4
|
9
|
+
bundle config retry 3
|
10
|
+
git config --global user.name 'GitHub Actions'
|
11
|
+
git config --global user.email 'github-actions@blinka'
|
12
|
+
fi
|
13
|
+
|
14
|
+
gem install bundler --conservative
|
15
|
+
bundle check || bundle install
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require_relative 'lib/blinka_reporter/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |gem|
|
4
|
+
gem.authors = ['David Wessman']
|
5
|
+
gem.description =
|
6
|
+
'Use to format test results from Minitest to use with Blinka.'
|
7
|
+
gem.email = 'david@wessman.co'
|
8
|
+
gem.homepage = 'https://github.com/davidwessman/blinka_reporter'
|
9
|
+
gem.license = 'MIT'
|
10
|
+
gem.summary = 'Format tests for Blinka'
|
11
|
+
|
12
|
+
gem.metadata = {
|
13
|
+
'homepage_uri' => 'https://github.com/davidwessman/blinka_reporter',
|
14
|
+
'bug_tracker_uri' =>
|
15
|
+
'https://github.com/davidwessman/blinka_reporter/issues',
|
16
|
+
'documentation_uri' => 'https://github.com/davidwessman/blinka_reporter',
|
17
|
+
'changelog_uri' =>
|
18
|
+
'https://github.com/davidwessman/blinka_reporter/main/CHANGELOG.md',
|
19
|
+
'source_code_uri' => 'https://github.com/davidwessman/blinka_reporter',
|
20
|
+
'rubygems_mfa_required' => 'true'
|
21
|
+
}
|
22
|
+
|
23
|
+
gem.files =
|
24
|
+
Dir.chdir(File.expand_path('..', __FILE__)) do
|
25
|
+
`git ls-files -z`
|
26
|
+
.split("\x0")
|
27
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
28
|
+
end
|
29
|
+
gem.name = 'blinka-reporter'
|
30
|
+
gem.version = BlinkaReporter::VERSION
|
31
|
+
gem.executables = ['blinka_reporter']
|
32
|
+
gem.require_path = ['lib']
|
33
|
+
|
34
|
+
gem.add_dependency('httparty', '~> 0.18')
|
35
|
+
gem.add_dependency('ox', '~> 2')
|
36
|
+
gem.add_development_dependency('dotenv', '~> 2.7.6')
|
37
|
+
gem.add_development_dependency('minitest', '~> 5.0')
|
38
|
+
gem.add_development_dependency('mocha', '~> 1.12')
|
39
|
+
gem.add_development_dependency('rake', '~> 13')
|
40
|
+
gem.add_development_dependency('webmock', '~> 3.11')
|
41
|
+
end
|