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.

rake test silently fails on syntax errors in tests

#276

In this test


- (void) testCanSerializeJSONWithNulls
{
    [self assert:"null" equals:[CPString JSONFromObject: null ] message:"1"];
    [self assert:null same:[[CPString JSONFromObject: null ] objectFromJSON] message:"2"];
    [self fail:[[CPString JSONFromObject: [ null ] ]];
    [self fail:"[[CPString JSONFromObject: [null] ]"];
    [self assertFalse:true];
    [self assert: [null] same:[[CPString JSONFromObject: [null] ] objectFromJSON] message:"3"];
    [self assert: {foo:null} same:[[CPString JSONFromObject: {foo:null} ] objectFromJSON] message:"4"];
}

the line [self fail:[[CPString JSONFromObject: [ null ] ]]; makes the parser barf and the tests just don't execute - but no error is shown.

Reported by Martin Häcker · April 27th, 2009 @ 03:30 AM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. ronin-756 (at lighthouseapp)
    ronin-756 (at lighthouseapp)
    • Tag changed from ojunit, rake to @to-acknowledge, ojunit, rake

    April 27th, 2009 @ 11:18 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.