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
-
ronin-756 (at lighthouseapp) April 27th, 2009 @ 11:18 PM
- Tag changed from ojunit, rake to @to-acknowledge, ojunit, rake
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.
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.