mirror of
https://github.com/adidas/api-guidelines.git
synced 2025-10-25 15:19:19 +00:00
Updates guides/api-testing-ci-environment.md
Auto commit by GitBook Editor
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
# Jenkins CI Environment for Apiary Project
|
||||
|
||||
This guide describes steps necessary for testing an API with Dredd in a CI Environment (Jenkins, TeamCity).
|
||||
This guide describes steps necessary for testing an API described in a swagger file with Dredd in a CI Environment (Jenkins, TeamCity).
|
||||
|
||||
## Preparation
|
||||
1. The CI environment MUST have a Node.js runtime:
|
||||
## Prerequisites
|
||||
The following must be available in the CI environment prior to testing:
|
||||
|
||||
1. Node.js runtime:
|
||||
|
||||
```
|
||||
$ node -v
|
||||
v7.5.0
|
||||
```
|
||||
|
||||
2. [Dredd](https://github.com/apiaryio/dredd) MUST be installed globally in the CI environment:
|
||||
1. [Dredd](https://github.com/apiaryio/dredd) MUST be installed globally in the CI environment:
|
||||
|
||||
```
|
||||
$ npm install -g dredd --no-optional
|
||||
@@ -21,4 +23,15 @@ This guide describes steps necessary for testing an API with Dredd in a CI Envir
|
||||
dredd v2.2.5 (Darwin 16.4.0; x64)
|
||||
```
|
||||
|
||||
1. Apiary API Key
|
||||
|
||||
```
|
||||
$ export APIARY_API_KEY=xyz
|
||||
```
|
||||
|
||||
## Testing an API
|
||||
|
||||
1. A `swagger.yaml` file with the description of API being tested.
|
||||
|
||||
1.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user