Kiwi

简单的 iOS BDD。(Simple BDD for iOS)

Github星跟蹤圖

Kiwi:适用于 iOS 的简单 BDD

Kiwi 是一个用于 iOS 开发的行为驱动开发库。其目标是提供一个易于设置和使用的 BDD 库。

为什么?

Kiwi 背后的想法是拥有比捆绑测试框架更易于阅读的测试。

测试(或者更确切地说是规范)是用 Objective-C 编写的,并在 Xcode 的舒适环境下运行,以提供一个在运行测试和错误报告方面尽可能不引人注目和无缝的测试环境。规范看起来像这样:

describe(@"Team", ^{
    context(@"when newly created", ^{
        it(@"has a name", ^{
            id team = [Team team];
            [[team.name should] equal:@"Black Hawks"];
        });
        it(@"has 11 players", ^{
            id team = [Team team];
            [[[team should] have:11] players];
        });
    });
});

文档

Kiwi Wiki 是官方文档来源。

安装

要通过 CocoaPods 安装,请将其添加到您的 Podfile:

pod "Kiwi"

或者通过 Carthage,将其添加到 Cartfile.private:

github "kiwi-bdd/Kiwi"

支持

对于您提出的所有问题/建议,请使用我们的 Google Group

主要指標

概覽
名稱與所有者kiwi-bdd/Kiwi
主編程語言Objective-C
編程語言Objective-C (語言數: 6)
平台Mac
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2010-06-13 06:17:23
推送於2023-09-05 11:52:14
最后一次提交2020-02-05 14:38:27
發布數19
最新版本名稱v3.0.0 (發布於 2018-01-12 12:31:49)
第一版名稱v1.0.0 (發布於 2011-09-19 18:37:05)
用户参与
星數4.1k
關注者數133
派生數509
提交數0.9k
已啟用問題?
問題數468
打開的問題數82
拉請求數183
打開的拉請求數9
關閉的拉請求數64
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Kiwi Logo

Kiwi: Simple BDD for iOS

Build Status

Kiwi is a Behavior Driven Development library for iOS development.
The goal is to provide a BDD library that is exquisitely simple to setup and use.

Why?

The idea behind Kiwi is to have tests that are more readable than what is possible with the bundled test framework.

Tests (or rather specs) are written in Objective-C and run within the comfort of Xcode to provide a test environment that is as unobtrusive and seamless as possible in terms of running tests and error reporting.

Specs look like this:

describe(@"Team", ^{
    context(@"when newly created", ^{
        it(@"has a name", ^{
            id team = [Team team];
            [[team.name should] equal:@"Black Hawks"];
        });

        it(@"has 11 players", ^{
            id team = [Team team];
            [[[team should] have:11] players];
        });
    });
});

Documentation

The Kiwi Wiki is the official documentation source.

Getting it

To install via CocoaPods, add this to your Podfile:

pod "Kiwi"

Or via Carthage, add this to Cartfile.private:

github "kiwi-bdd/Kiwi"

Support

For all the questions / suggestions you have, that aren't bug reports please use our Google Group