Kiwi

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

Github stars Tracking Chart

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

Overview

Name With Ownerkiwi-bdd/Kiwi
Primary LanguageObjective-C
Program languageObjective-C (Language Count: 6)
PlatformMac
License:BSD 3-Clause "New" or "Revised" License
Release Count19
Last Release Namev3.0.0 (Posted on 2018-01-12 12:31:49)
First Release Namev1.0.0 (Posted on 2011-09-19 18:37:05)
Created At2010-06-13 06:17:23
Pushed At2023-09-05 11:52:14
Last Commit At2020-02-05 14:38:27
Stargazers Count4.1k
Watchers Count135
Fork Count514
Commits Count0.9k
Has Issues Enabled
Issues Count467
Issue Open Count81
Pull Requests Count183
Pull Requests Open Count9
Pull Requests Close Count64
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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

To the top