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