TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2016 |
Maintained by Sam Coward, Jeff Hui, Andrew Kitchen, Brian Croom, Brian Croom.
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] should equal(@"foobar");
});
it(@"length returns the number of characters in the string", ^{
[@"internationalization" length] should equal(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;
});
});
});
pod 'Cedar'
), Carthage (github "pivotal/cedar"
), or another method
$ curl -L https://raw.github.com/pivotal/cedar/master/install.sh | bash
$ bash <(echo "set -- --head; $(curl -L https://raw.github.com/pivotal/cedar/master/install.sh)")
Documentation can be found on the Cedar Wiki.
Please read the Contributor Guide on the wiki.
Copyright (c) 2010-2016 Pivotal Labs. This software is licensed under the MIT License.