Skip to content

cedarbdd/cedar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6ee7b6c · Apr 25, 2016
Apr 15, 2016
Jan 13, 2016
May 1, 2010
Apr 25, 2016
Apr 15, 2016
Aug 18, 2015
Apr 12, 2016
Sep 27, 2013
Jul 23, 2015
Apr 25, 2016
Apr 25, 2016
Jul 23, 2013
Oct 1, 2014
Oct 3, 2014
Feb 11, 2016
Apr 12, 2016
Jul 23, 2015
May 13, 2014
Sep 28, 2014

Repository files navigation

Cedar

Build Status Carthage compatible

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;
        });
    });
});

Quick start

    $ curl -L https://raw.github.com/pivotal/cedar/master/install.sh | bash
  • Or if you want to install from HEAD. Run:
    $ bash <(echo "set -- --head; $(curl -L https://raw.github.com/pivotal/cedar/master/install.sh)")
  • Restart Xcode
  • Add new spec files to your project's Test Bundle using the Xcode templates
  • Start writing specs!

Documentation

Documentation can be found on the Cedar Wiki.

Support and feedback

Contributing

Please read the Contributor Guide on the wiki.

Maintainers

Copyright (c) 2010-2016 Pivotal Labs. This software is licensed under the MIT License. Mixpanel