- Notifications
You must be signed in to change notification settings - Fork140
BDD-style testing using Objective-C
NotificationsYou must be signed in to change notification settings
cedarbdd/cedar
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Cedar is a BDD-style Objective-C testing framework with an expressive matcher DSL and convenient test doubles.
describe(@"Example specs on NSString", ^{it(@"lowercaseString returns a new string with everything in lower case", ^{ [@"FOOBar"lowercaseString] shouldequal(@"foobar"); });it(@"length returns the number of characters in the string", ^{ [@"internationalization"length] shouldequal(20); });describe(@"isEqualToString:", ^{it(@"should return true if the strings are the same", ^{ [@"someString"isEqualToString:@"someString"] should be_truthy; });it(@"should return false if the strings are not the same", ^{ [@"someString"isEqualToString:@"anotherString"] should be_falsy; }); });});
- Add Cedar to your project viaCocoaPods (
pod 'Cedar'
),Carthage (github "cedarbdd/cedar"
), oranother method - Install the Cedar Xcode file templates using theAlcatraz package manager or by running this command in a terminal:
$ curl -L https://raw.github.com/cedarbdd/cedar/master/install.sh | bash
- Or if you want to install from HEAD. Run:
$ bash <(echo "set -- --head; $(curl -L https://raw.github.com/cedarbdd/cedar/master/install.sh)")
- Restart Xcode
- Add new spec files to your project's Test Bundle using the Xcode templates
- Start writing specs!
Documentation can be found on theCedar Wiki.
- Search past discussions:http://groups.google.com/group/cedar-discuss
- Send an e-mail to the discussion list:mailto:cedar-discuss@googlegroups.com
- View the project backlog on Pivotal Tracker:http://www.pivotaltracker.com/projects/77775.
- Follow us on twitter:@cedarbdd
Please read theContributor Guide on the wiki.
- Andrew Kitchen (akitchen), Pivotal Labs, San Francisco
- Brian Croom (briancroom), Pivotal Labs, Toronto
- Jeff Hui (jeffh), Pivotal Labs, San Francisco
- Sam Coward (idoru), Pivotal Labs, New York
- Tim Jarratt (tjarratt), Pivotal Labs, San Francisco
Copyright (c) 2010-2016 Pivotal Labs. This software is licensed under the MIT License.