Skip to content

Tapout 0.5.0

Latest

Choose a tag to compare

@trans trans released this 21 Nov 19:33
705355d

Tapout runs on current Ruby again. It needs Ruby 2.7 or newer.

Changes:

  • Work with Bundler on Ruby 3.4 and newer, where the abbrev library is
    no longer part of Ruby. Reporter names are matched without it: a name
    can still be shortened to any unique beginning, as in tapout pro.
  • Work with frozen string literals.
  • Work on Ruby 4.0, by loading only the parts of the ANSI library that
    Tapout uses. Loading all of it fails there for want of logger.
  • Replace the old packaging (.index, .gemspec, Assembly, MANIFEST,
    var/) with a plain tapout.gemspec, and Travis with GitHub Actions,
    testing Ruby 2.7 to 4.0.
  • Tapout::VERSION is a constant in tapout/version.rb. Tapout.metadata
    and the lookup of other project metadata as constants are gone.
  • Correct the README, which named a progressbar reporter; it is
    progress.
  • Reporters no longer raise for a test that didn't pass and says little
    about why. Only an exception's message is required by TAP-Y/J, but the
    markdown and html reporters needed its class or backtrace, and
    every reporter needed the exception section itself, which a failed test
    from plain TAP doesn't have.
  • The tap reporter prints a line for a test that was omitted
    (ok N - label # SKIP reason) or is still to be done
    (not ok N - label # TODO reason), so the lines match the plan (#14).
    Without a count at the start of the stream, it prints the plan at the end.
  • The outline reporter lists omitted and to-do tests, with the reason.
  • Reading plain TAP: a TAP version line is accepted, as is a stream that
    starts with a test line or a comment; # SKIP and # TODO directives
    become omit and todo; a test line needn't have a number; and the
    final counts include errors, omissions and to-dos.
  • The outline and markdown reporters no longer raise for tests that
    belong to no case, as in plain TAP.