Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Add pending_test to AS Test::Unit helpers

#2119

This is a minimal implementation for pending tests.

The given block is never evaluated and a helpful notice is written to stdout.


pending_test "false is true" do
  assert false
end

Output:


Started
..
PENDING: false is true (in test/some_test.rb:2)
.......
Finished in 0.034713 seconds.

Reported by Damian Janowski · March 3rd, 2009 @ 05:24 PM

State: wontfix
Milestone: 3.0.2
Assigned to: Yehuda Katz (wycats) Yehuda Katz (wycats)
Importance: none

Activity

  1. Pratik
    Pratik
    • Assigned user changed from DHH to Yehuda Katz (wycats)
    • Tag set to active_support, patch, testunit

    I think Yehuda was working on something similar.

    March 9th, 2009 @ 01:00 PM

  2. Pratik
    Pratik
    • State changed from new to wontfix

    We already have pending now.

    June 21st, 2009 @ 10:15 PM

  3. Yehuda Katz (wycats)
    Yehuda Katz (wycats)
    • Milestone cleared.

    The pending I added in AS has the following semantics:

    If you use pending without a block, it will print a "P" in the output and include it in the list of pending tests at the end of the run. If you use pending with a block, it will run the contents of the block, and fail if the tests pass (also adds it to the list of pending tests and prints a "P" if the contents fail).

    To get this behavior, just inherit from AS::TestCase

    June 22nd, 2009 @ 04:20 PM

  4. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to

    October 15th, 2010 @ 11:01 PM