Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/etiennemarais/outline
Parse and generate API Blueprint markdown into Feature/Acceptance tests
https://github.com/etiennemarais/outline
Last synced: about 5 hours ago
JSON representation
Parse and generate API Blueprint markdown into Feature/Acceptance tests
- Host: GitHub
- URL: https://github.com/etiennemarais/outline
- Owner: etiennemarais
- License: gpl-3.0
- Created: 2016-01-15T13:38:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-09T08:41:38.000Z (over 8 years ago)
- Last Synced: 2024-04-03T18:47:23.072Z (8 months ago)
- Language: PHP
- Size: 46.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Outline
Parse and generate API Blueprint markdown into Feature/Acceptance tests[![Build Status](https://travis-ci.org/etiennemarais/outline.svg?branch=master)](https://travis-ci.org/etiennemarais/outline)
## 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
```