etiennemarais/outline

解析和生成 API Blueprint 的 markdown 格式的功能/验收测试。

维护者

详细信息

github.com/etiennemarais/outline

来源

安装: 38

依赖者: 1

建议者: 0

安全性: 0

星星: 3

关注者: 2

分支: 0

类型:项目

0.2.3 2016-02-04 15:01 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:03:56 UTC


README

解析和生成 API Blueprint 的 markdown 格式的功能/验收测试

Build Status

注意

此项目在解析 API Blueprint 文档方面非常主观,且完全针对单一用途构建

待办事项

  • 我将随着时间的推移继续扩展此功能,以接受任何格式的 API Blueprint 文档,并为它们生成验收测试

示例用法

// Get the parser
$drafter = new \DrafterPhp\Drafter(__DIR__ . '/../vendor/bin/drafter');

// Build a new blueprint object
$apiBlueprint = new ApiBlueprint($drafter, __DIR__ . '/example.apib');

// Run the thing
(new Generator(new Transformer))
    ->with($apiBlueprint)
    ->outputTo(__DIR__ . '/generated_tests')
    ->generateTestsFor('lumen'); // Entirely only supports laravel style test output