Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

nemesis/cedar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

871 Commits

Repository files navigation

Cedar

Build Status

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

  • Install the Xcode command line tools package (Under the Preferences tab 'Downloads') if you haven't already done so
  • Run the following in a terminal to install Xcode templates for ease of use:
 $ curl -L https://raw.github.com/pivotal/cedar/master/install.sh | bash
  • Restart Xcode
  • Add new targets or files to your project using the Xcode templates, or create a new project to test-drive from scratch
  • 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-2014 Pivotal Labs. This software is licensed under the MIT License. Mixpanel

About

BDD-style testing using Objective-C

Resources

Stars

Watchers

Forks

Packages

Contributors

Languages

  • Objective-C++ 67.4%
  • Objective-C 22.7%
  • C++ 4.3%
  • Ruby 3.6%
  • C 1.2%
  • AppleScript 0.5%
  • Shell 0.3%

AltStyle によって変換されたページ (->オリジナル) /