Opened 14 years ago

Closed 14 years ago

#295 closed defect (fixed)

Nested test groups report success even when subgroups failed

Reported by: sjamaan Owned by: Alex Shinn
Priority: major Milestone:
Component: extensions Version:
Keywords: Cc:
Estimated difficulty:

Description

Here's an example:

#;1> (use test)
#;2> (test-group "a" (test-group "b" (test-group "c" (test 1 2))))

-- testing a -----------------------------------------------------------------

    -- testing b -------------------------------------------------------------

        -- testing c ---------------------------------------------------------
        2 ............................................................ [ FAIL]
    expected 1 but got 2
        1 test completed in 0.009 seconds.
        1 failure (100%).
        0 out of 1 (0%) tests passed.
        -- done testing c ----------------------------------------------------

    1 subgroup completed in 0.01 seconds.
    0 out of 1 (0%) subgroups passed.
    -- done testing b --------------------------------------------------------

1 subgroup completed in 0.011 seconds.
1 out of 1 (100%) subgroup passed.
-- done testing a ------------------------------------------------------------ 

Subgroup C fails, causing subgroup B to report failure as well, but somehow subgroup A thinks subgroup B didn't fail.

Change History (1)

comment:1 Changed 14 years ago by Alex Shinn

Resolution: fixed
Status: newclosed

Fixed.

Note: See TracTickets for help on using tickets.