Repository navigation
Conversation
The formatter is rewritten on the same lines as Minitap's reporter. Skipped examples are reported as omit and pending ones as todo, both with their reason; a pending example that passes is a failure; what RSpec says outside of an example becomes a note. Packaging is a plain gemspec with GitHub Actions, testing Ruby 2.7 to 4.0 and the oldest RSpec 3. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Ruby 3.1 appends the highlighted source line to a NameError's message. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RSpec On Tap 0.3.1 still works on RSpec 3.13, so this is mostly upkeep, with a rewrite of the formatter along the lines of Minitap's new reporter.
Changes in the stream
skiporxithas the statusomit. A pending one, or one with no body, is stilltodo. All four weretodobefore.Structure
lib/rspec/ontap.rb:RSpec::TapBaseFormatterwithRSpec::TapYandRSpec::TapJ, the names RSpec's-foption uses, unchanged..index,Assembly,MANIFESTand Travis.try/example, which used a syntax RSpec no longer accepts, is replaced by QED demos.Testing
Five QED demos (43 steps) write a spec file, run it with the
rspeccommand and check the stream, including a pass through Tapout. I ran them locally in containers on Ruby 2.7 and 4.0 with the latest RSpec, and on Ruby 2.7 with RSpec 3.0, 3.4, 3.6, 3.7 and 3.8. Everything works from RSpec 3.0; the note for a load error needs RSpec 3.6, where RSpec began reporting those.Version is 0.4.0 in
version.rb; HISTORY has the entry under Unreleased, and gains the missing entry for 0.3.1.🤖 Generated with Claude Code