#276 new
Martin Häcker

rake test silently fails on syntax errors in tests

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

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.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket

Pages