Shared testing and coverage configuration for the Lesli Platform.
Quick start
Install LesliTesting gem
bundle add lesli_testing
Include LesliTesting in your test_helper.rb file
ENV["RAILS_ENV"] ||= "test"
# Load LesliTesting tools
require "lesli_testing"
# Configure leslitesting tools for a rails engine
LesliTesting.engine("LesliShield")
# Configure lesli testing tools for a rails app
LesliTesting.app("LesliBuilder")
# # Configure leslitesting tools for a ruby gem
LesliTesting.gem("LesliDate")
Run your tests D:
rails test
# or
COVERAGE=true rails test
# or run like github actions
COVERAGE=true CI=true rails test
Result :D
Options
The following options can be used to customize coverage behavior in LesliTesting.
| Option | Type | Default | Description |
|---|---|---|---|
coverage_missing_len | Integer | 25 | Minimum width for missing coverage output. |
coverage_min_coverage | Integer | 40 | Minimum expected coverage percentage. |
Example:
LesliTesting.configure(LesliShield, {
coverage_missing_len: 30,
coverage_min_coverage: 80
})
Documentation
Connect with Lesli
License
Copyright (c) 2026, Lesli Technologies, S. A.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
The Open-Source SaaS Development Framework for Ruby on Rails.
Last Update: 2026/04/19