0.0
No release in over 3 years
Core testing utilities for the Lesli Platform, providing standardized Minitest configuration, coverage setup, and shared testing conventions across engines and applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 8.0.0
~> 1.10.0
~> 6.0.0
~> 0.22.0
~> 1.1.0
 Project Readme
LesliTesting logo

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

LesliTesting screenshot

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/.




Lesli logo

The Open-Source SaaS Development Framework for Ruby on Rails.