Module Hoe::Test
In: lib/hoe/test.rb

Test plugin for hoe.

Tasks Provided:

audit:Run ZenTest against the package.
default:Run the default task(s).
multi:Run the test suite using multiruby.
test:Run the test suite.
test_deps:Show which test files fail when run alone.

Methods

Constants

SUPPORTED_TEST_FRAMEWORKS = { :testunit => "test/unit", :minitest => "minitest/autorun", :none => nil, }   Configuration for the supported test frameworks for test task.
FILTER = ENV['FILTER'] || ENV['TESTOPTS']   Used to add flags to test_unit (e.g., -n test_borked).

eg FILTER="-n test_blah"

Attributes

multiruby_skip  [RW]  Optional: Array of incompatible versions for multiruby filtering. Used as a regex.
rspec_dirs  [RW]  Optional: RSpec dirs. [default: %w(spec lib)]
rspec_options  [RW]  Optional: RSpec options. [default: []]
test_prelude  [RW]  Optional: Additional ruby to run before the test framework is loaded.
testlib  [RW]  Optional: What test library to require [default: :testunit]

Public Instance methods

Define tasks for plugin.

Initialize variables for plugin.

Generate the test command-line.

Attempt to load RSpec 1, returning true if successful

Attempt to load RSpec 2, returning true if successful

[Validate]