docteurklein/funk-spec

测试运行器

0.1.3 2017-12-01 15:09 UTC

This package is not auto-updated.

Last update: 2024-09-14 14:55:37 UTC


README

是什么?

基于Behat/Testwork的功能性/系统/集成测试框架。

为什么?

用户验收测试不应该包含技术细节,
但这并不意味着应用的一些技术部分不应该被独立测试。

此外,一些中间模块也可以被测试,它们介于单元测试和系统测试之间。

如何?

composer require docteurklein/funk-spec --dev
vim funk/Feature/That/DoesStuff/ProfitsTo/Customer.php
vendor/bin/funk funk
<?php

namespace funk\Feature\That\DoesStuff\ProfitsTo;

use Funk\Spec;

class Customer implements Spec
{
    function it_simplifies_customers_life()
    {
        // pic or it didn't happen!
    }
}

img