etiennemarais / outline
Parse and generate API Blueprint markdown into Feature/Acceptance tests.
Installs: 42
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Type:project
pkg:composer/etiennemarais/outline
Requires
- php: 5.6.*
- hmaus/drafter-php: 2.*
Requires (Dev)
- fzaninotto/faker: ~1.4
- illuminate/support: ~5.2
- mockery/mockery: 0.9.*
- phpspec/phpspec: ~2.1
- phpunit/phpunit: ~4.0
- symfony/var-dumper: ~3.0
This package is not auto-updated.
Last update: 2025-09-28 00:29:23 UTC
README
Parse and generate API Blueprint markdown into Feature/Acceptance tests
NOTE
This project is still very opinionated about how it parses api blueprint documents and is built entirely for a single use case
TODO
- I will continue to build this out over time to accept any format of api blueprint document and generate acceptance tests for them
Example usage
// 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