README.txt

Path: README.txt
Last Update: Thu May 15 23:52:59 -0500 2008

tending

DESCRIPTION:

tending allows you to add pending tests to your Test::Unit test cases

FEATURES/PROBLEMS:

  • tending allows adding pending tests to Test::Unit test cases
  • tending can report on pending tests in files given a file pattern

SYNOPSIS:

While writing your test cases, use tending to add place holders for tests you haven‘t yet written using the pending method. For example:

  require 'test/unit'
  require 'rubygems'
  require 'tending'

  class TestFoo < Test::Unit::TestCase
    def test_truth
      assert true
    end

    pending 'test false scenario'
    pending 'test edge cases'
  end

After adding pending tests to your test files, you can use the tending command line tool to generate a report of pending tests. This command accepts any file patterns that Dir.glob accepts. For example, if I wanted a report of all pending tests within the test directory of my project and my current working directory was the project root, I would execute the following:

  tending 'test/*'

This will generate a detailed report, by file, of all pending tests.

REQUIREMENTS:

  • need 1.0.2
  • hoe 1.5.1

INSTALL:

  • rubyforge - sudo gem install tending
  • github - sudo gem install dfg59-tending —source=http://gems.github.com

LICENSE:

(The MIT License)

Copyright (c) 2008 FIX

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

[Validate]