Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# RELEASE HISTORY

## Unreleased

* Route `lemons test` through Rubytest's bundled CLI and require Rubytest 0.9+.
* Use the built-in TAP format in the README example.

## 0.9.3 / 2026-04-01

Bug fix release. Fixes Ruby 3+ compatibility issues in test method dispatch.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Lemon utilizes the RubyTest universal test harness to run tests, the `lemons tes

Normal output is typically a _dot progression_. Other output types can be specified by the `--format` or `-f` option.

$ rubytest -r lemon -f tapy test/cases/name_case.rb
$ rubytest -r lemon -f tap test/cases/name_case.rb

See [RubyTest](https://github.com/rubyworks/rubytest) for more information.

Expand Down
2 changes: 1 addition & 1 deletion lemon.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.executables = ['lemons']
s.require_paths = ['lib']

s.add_dependency 'rubytest', '>= 0.8'
s.add_dependency 'rubytest', '>= 0.9'
s.add_dependency 'ae', '>= 1.8'
s.add_dependency 'ansi', '>= 1.5'

Expand Down
10 changes: 2 additions & 8 deletions lib/lemon/cli.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#require 'lemon/cli/runner'
require 'lemon/cli/generate'
require 'lemon/cli/scaffold'
require 'lemon/cli/coverage'
Expand All @@ -11,10 +10,6 @@ module Lemon
module CLI
end

#--
# TODO: Use Lemon::CLI::Runner and have it delegate to RubyTest ?
#++

# Command line interface takes the first argument off `argv` to determine
# the subcommand: `test`, `cov` or `gen`. If `test`, then Lemon delegates
# control to Ruby Test.
Expand All @@ -24,9 +19,8 @@ def self.cli(*argv)
case cmd
when 't', 'test', 'run'
require 'lemon'
require 'rubytest'
Test::Runner.cli(*ARGV)
#Lemon::CLI::Test.new.run(argv)
require 'rubytest/cli'
Test::CLI.run(argv)
when 'g', 'gen', 'generate', 'generator'
Lemon::CLI::Generate.run(argv)
when 's', 'sca', 'scaffold'
Expand Down
Loading