talira

Ruby testing tools: zentest, unit_diff, autotest and multiruby

open sourceMITfree

ZenTest is a set of four Ruby testing tools by Ryan Davis and Eric Hodel of Seattle.rb: zentest scans your code and tests and writes the missing methods from naming rules (for Minitest or Test::Unit), unit_diff diffs expected against actual results, autotest re-runs the affected tests whenever you save a file, and multiruby runs anything against several Ruby versions. The next major release drops autotest, which lives on as minitest-autotest.

Problems it solves

  • re-run Ruby tests automatically when files change
  • run a Ruby test suite against several Ruby versions
  • generate missing test stubs in Ruby

Features

  • zentest generates missing code and tests from naming rules
  • unit_diff for readable test failures
  • autotest continuous testing
  • multiruby for testing across Ruby versions

Limitations

  • The next major release drops autotest (use minitest-autotest).1

Alternatives

The same job

These do what ZenTest does.

  1. test-unit An xUnit family unit testing framework for Ruby
  2. RSpec Behaviour-driven testing framework for Ruby
  3. Minitest Small, fast testing library for Ruby: unit tests, specs and benchmarks

Compare ZenTest with the top 3