0.0
The project is in a healthy, maintained state
Core testing utilities for the Lesli Platform, providing standardized Minitest configuration, coverage setup, and shared testing conventions across applications, engines and gems.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 6.0.0
~> 0.22.0
~> 1.1.0
 Project Readme

LesliTesting

Shared testing, reporting, and coverage tools for the Lesli Framework.



LesliTesting terminal test report



Introduction

LesliTesting provides the shared test configuration used across the Lesli Framework.

It standardizes Minitest output, SimpleCov profiles, coverage reports, and fixture loading for Rails applications, engines, and Ruby gems.


Features

  • Profiles for Rails applications, engines, and Ruby gems
  • Human-friendly Minitest terminal reporting
  • SimpleCov HTML, console, and Cobertura reports
  • Configurable minimum coverage
  • Shared Lesli fixture loading
  • CI-aware test and coverage output

Installation

Add LesliTesting to the application:

bundle add lesli_testing

Usage

Configure the test suite

Require LesliTesting near the beginning of test/test_helper.rb, then choose the matching project profile:

ENV["RAILS_ENV"] ||= "test"

require "lesli_testing"

LesliTesting.app("LesliBuilder")
# LesliTesting.engine("LesliShield")
# LesliTesting.gem("LesliDate")

Coverage options

Pass configuration to the selected profile:

LesliTesting.engine(
  "LesliShield",
  coverage_missing_len: 30,
  coverage_min_coverage: 80
)
Option Type Default Description
coverage_missing_len Integer 25 Minimum width for missing-coverage output.
coverage_min_coverage Integer 90 Minimum expected coverage percentage.

Run tests

bin/rails test
COVERAGE=true bin/rails test
COVERAGE=true CI=true bin/rails test

Set QUIET=true to suppress the per-test lines printed by the custom reporter.


Development

Clone the repository and install its dependencies:

git clone https://github.com/LesliTech/LesliTesting.git
cd LesliTesting
bundle install

To use local source from a Lesli development workspace, reference it from the host application's Gemfile:

gem "lesli_testing", path: "gems/LesliTesting"

Tests

Run the default test task from the LesliTesting directory:

bundle exec rake

Documentation


Community


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 https://www.gnu.org/licenses/.

The complete license text is available in the license file.




Lesli icon

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