1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/pjy-uitestcollection

Клонировать/Скачать
cedar.md 990
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
PengJiyuan Отправлено 24.08.2016 05:20 81c9465

pivotal/cedar

github: https://github.com/pivotal/cedar

Star: 1088
Fork: 151
Watch: 65
Up to 2016.08.23

What is cedar?

Cedar, BDD style testing for Objective-C and Swift

Cedar is a self-contained behavior driven development (BDD) framework for Objective-C and Swift. It provides improvements in clarity and better organizational facilities than the tools provided by XCTest/OCUnit. In environments where C++ is available, it also provides powerful built-in matchers, test doubles and fakes.

Objective-C:

describe(@"Cedar", ^{
    it(@"is great for testing Objective-C code", ^{
        yourTests should be_clearer();
    });
});

Swift:

class CedarSpec: CDRSpec {
    override func declareBehaviors() {
        describe("Cedar") {
            it("also works great with Swift") {
                expect(yourTests).to(beClearer())
            }
        }
    }
}

Cedar Wiki

https://github.com/pivotal/cedar/wiki

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/pjy-uitestcollection.git
git@api.gitlife.ru:oschina-mirror/pjy-uitestcollection.git
oschina-mirror
pjy-uitestcollection
pjy-uitestcollection
master