Skip to content

Commit 4fa0b15

Browse files
committed
Enable branch coverage in SimpleCov configuration
- Add enable_coverage :branch to SimpleCov.start block - Improves test coverage reporting by tracking branch coverage - Helps identify untested code paths and conditional logic
1 parent 3e14d24 commit 4fa0b15

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.simplecov

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ if ENV['GITHUB_USER'] # only when running CI
1111
end
1212

1313
SimpleCov.start do
14+
enable_coverage :branch
1415
add_filter '/spec/'
1516
end

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* [#2601](https://github.com/ruby-grape/grape/pull/2601): Refactor route_setting internal usage to use inheritable_setting.route for improved consistency and performance - [@ericproulx](https://github.com/ericproulx).
1818
* [#2602](https://github.com/ruby-grape/grape/pull/2602): Remove `namespace_reverse_stackable` from public DSL interface and use direct inheritable_setting access - [@ericproulx](https://github.com/ericproulx).
1919
* [#2603](https://github.com/ruby-grape/grape/pull/2603): Remove `namespace_stackable_with_hash` from public interface and move to internal InheritableSetting - [@ericproulx](https://github.com/ericproulx).
20+
* [#2604](https://github.com/ruby-grape/grape/pull/2604): Enable branch coverage - [@ericproulx](https://github.com/ericproulx).
2021
* Your contribution here.
2122

2223
#### Fixes

0 commit comments

Comments
 (0)