• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 34029220227
99%

Build:
DEFAULT BRANCH: master
Ran 06 Sep 2026 11:05AM UTC
Jobs 32
Files 169
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Sep 2026 11:05AM UTC coverage: 99.196% (+2.0%) from 97.157%
34029220227

push

github

web-flow
Improve branch test coverage (#2897)

* Bring test suite line coverage to 100%

Add specs for previously-untested classes/methods and branches across
the middleware, router, serve_stream, util, validations and
exceptions namespaces.

Also remove a structurally unreachable "format not supported" throw
in Grape::Middleware::Error#format_message: formatter_for always
falls back to a registered Txt formatter (registered via
ErrorFormatter::Base.inherited), so `formatter` can never be falsy
and the 406 branch could never execute.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Improve branch coverage for exceptions, namespace, router, testing and translation utilities

Adds direct unit tests to exercise previously-uncovered branches:
- Grape::Exceptions::Base#translate_message (Proc/Hash-pattern/plain-value branches, and the Hash-without-:key error case)
- Grape::Exceptions::RequestError (new spec file)
- Grape::Exceptions::Validation (message omitted case)
- Grape::Middleware::Base (instance-level #default_options fallback)
- Grape::Middleware::Error (#resolved_backtrace fallback chain, InvalidVersionHeader precedence)
- Grape::Middleware::Stack::Middleware#== (non-Middleware/non-Class comparison)
- Grape::Middleware::Versioner::Header (skips media-type matching without a vendor)
- Grape::Namespace.joined_space
- Grape::Router::BaseRoute#initialize (ActiveSupport::OrderedOptions wrapping)
- Grape::Router::MustermannPattern (:param capture syntax, Integer vs. default constraint)
- Grape::Router::Pattern::Path#suffix (non-path versioning)
- Grape::Testing (missing block / no registered hooks)
- Grape::Util::Translation#translate (explicit locale / explicit default / fallback-locale retry)

Also marks one genuinely unreachable branch (comment-only, not deleted,
per project convention):
- Grape::DSL::Routing#version's trailing `@versions&.last` — @versions
  is unconditionally reassigned to an Array a few lines above, so the
  `&.` ca... (continued)

1291 of 1334 branches covered (96.78%)

Branch coverage included in aggregate %.

4013 of 4013 relevant lines covered (100.0%)

27273.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rails_8_0.gemfile - 34029220227.1 06 Sep 2026 11:05AM UTC 169
97.92
GitHub Action Run
2 run-4.0-gemfiles/rails_7_2.gemfile - 34029220227.2 06 Sep 2026 11:05AM UTC 169
97.9
GitHub Action Run
3 run-4.0-gemfiles/hashie.gemfile - 34029220227.3 06 Sep 2026 11:05AM UTC 167
61.83
GitHub Action Run
4 run-3.4-gemfiles/rails_7_2.gemfile - 34029220227.4 06 Sep 2026 11:05AM UTC 169
97.89
GitHub Action Run
5 run-4.0-gemfiles/rack_3_1.gemfile - 34029220227.5 06 Sep 2026 11:05AM UTC 168
97.88
GitHub Action Run
6 run-3.3-Gemfile - 34029220227.6 06 Sep 2026 11:05AM UTC 168
97.9
GitHub Action Run
7 run-3.4-gemfiles/rack_2_2.gemfile - 34029220227.7 06 Sep 2026 11:05AM UTC 168
97.87
GitHub Action Run
8 run-4.0-gemfiles/multi_json.gemfile - 34029220227.8 06 Sep 2026 11:05AM UTC 167
47.58
GitHub Action Run
9 run-4.0-gemfiles/rails_8_0.gemfile - 34029220227.9 06 Sep 2026 11:05AM UTC 169
97.89
GitHub Action Run
10 run-4.0-gemfiles/rack_3_2.gemfile - 34029220227.10 06 Sep 2026 11:05AM UTC 168
97.9
GitHub Action Run
11 run-4.0-gemfiles/multi_json_1_20.gemfile - 34029220227.11 06 Sep 2026 11:05AM UTC 167
47.62
GitHub Action Run
12 run-3.4-Gemfile - 34029220227.12 06 Sep 2026 11:05AM UTC 168
97.9
GitHub Action Run
13 run-3.4-gemfiles/rack_3_2.gemfile - 34029220227.13 06 Sep 2026 11:05AM UTC 168
97.9
GitHub Action Run
14 run-4.0-gemfiles/grape_entity.gemfile - 34029220227.14 06 Sep 2026 11:05AM UTC 167
50.35
GitHub Action Run
15 run-4.0-Gemfile - 34029220227.15 06 Sep 2026 11:05AM UTC 168
97.9
GitHub Action Run
16 run-3.3-gemfiles/rails_8_1.gemfile - 34029220227.16 06 Sep 2026 11:05AM UTC 169
97.9
GitHub Action Run
17 run-3.4-gemfiles/rails_8_0.gemfile - 34029220227.17 06 Sep 2026 11:06AM UTC 169
97.89
GitHub Action Run
18 run-3.4-gemfiles/rack_3_1.gemfile - 34029220227.18 06 Sep 2026 11:05AM UTC 168
97.88
GitHub Action Run
19 run-4.0-gemfiles/multi_xml.gemfile - 34029220227.19 06 Sep 2026 11:05AM UTC 167
47.06
GitHub Action Run
20 run-3.3-gemfiles/rack_3_1.gemfile - 34029220227.20 06 Sep 2026 11:05AM UTC 168
97.9
GitHub Action Run
21 run-4.0-gemfiles/grape_swagger.gemfile - 34029220227.21 06 Sep 2026 11:05AM UTC 167
55.28
GitHub Action Run
22 run-3.4-gemfiles/rack_3_0.gemfile - 34029220227.22 06 Sep 2026 11:05AM UTC 168
97.88
GitHub Action Run
23 run-4.0-gemfiles/dry_validation.gemfile - 34029220227.23 06 Sep 2026 11:05AM UTC 167
57.84
GitHub Action Run
24 run-3.3-gemfiles/rack_3_0.gemfile - 34029220227.24 06 Sep 2026 11:05AM UTC 168
97.9
GitHub Action Run
25 run-3.4-gemfiles/rails_8_1.gemfile - 34029220227.25 06 Sep 2026 11:05AM UTC 169
97.9
GitHub Action Run
26 run-4.0-gemfiles/rack_2_2.gemfile - 34029220227.26 06 Sep 2026 11:06AM UTC 168
97.87
GitHub Action Run
27 run-3.3-gemfiles/rack_2_2.gemfile - 34029220227.27 06 Sep 2026 11:06AM UTC 168
97.88
GitHub Action Run
28 run-3.3-gemfiles/rails_7_2.gemfile - 34029220227.28 06 Sep 2026 11:06AM UTC 169
97.92
GitHub Action Run
29 run-4.0-gemfiles/multi_xml_0_8.gemfile - 34029220227.29 06 Sep 2026 11:05AM UTC 167
47.09
GitHub Action Run
30 run-4.0-gemfiles/rack_3_0.gemfile - 34029220227.30 06 Sep 2026 11:06AM UTC 168
97.88
GitHub Action Run
31 run-4.0-gemfiles/rails_8_1.gemfile - 34029220227.31 06 Sep 2026 11:06AM UTC 169
97.89
GitHub Action Run
32 run-3.3-gemfiles/rack_3_2.gemfile - 34029220227.32 06 Sep 2026 11:05AM UTC 168
97.9
GitHub Action Run
Source Files on build 34029220227
  • Tree
  • List 169
  • Changed 38
  • Source Changed 0
  • Coverage Changed 38
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34029220227
  • 30f2c198 on github
  • Prev Build on master (#33993167075)
  • Next Build on master (#34029315262)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc