Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
598 additions
and
404 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Execution Lifecycle | ||
|
||
This section provides the order in which Dredd executes to give a better understanding of how Dredd works. | ||
|
||
1. Load and parse blueprints | ||
- Report parsing warnings | ||
2. Pre-run blueprint check | ||
- Missing example values for URI template parameters | ||
- Required parameters present in URI | ||
- Report non-parseable JSON bodies | ||
- Report invalid URI parameters | ||
- Report Invalid URI templates | ||
3. Compile HTTP transactions from blueprints | ||
- Inherit headers | ||
- Inherit parameters | ||
- Expand URI templates with parameters | ||
4. Load hooks | ||
5. Test run | ||
- Report test run `start` | ||
- Run `beforeAll` hooks | ||
- For each compiled transaction: | ||
- Report `test start` | ||
- Run `beforeEach` hook | ||
- Run `before` hook | ||
- Send HTTP request | ||
- Receive HTTP response | ||
- Run `beforeEachValidation` hook | ||
- Run `beforeValidation` hook | ||
- Perform [Gavel][] validation | ||
- Run `after` hook | ||
- Run `afterEach` hook | ||
- Report `test end` with result for in-progress reporting | ||
- Run `afterAll` hooks | ||
6. Report test run `end` with result statistics | ||
|
||
[Gavel]: http://blog.apiary.io/2013/07/24/Bam-this-is-Gavel/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.