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:
@@ -2,17 +2,24 @@
|
||||
|
||||
This guide describes steps necessary for testing an API described in a swagger file with Dredd in a CI Environment (Jenkins, TeamCity).
|
||||
|
||||
## Prerequisites
|
||||
## Environment Prerequisites
|
||||
The following must be available in the CI environment prior to testing:
|
||||
|
||||
1. Node.js runtime:
|
||||
1. **Node.js** runtime MUST be available in the CI environment:
|
||||
|
||||
```
|
||||
$ node -v
|
||||
v7.5.0
|
||||
```
|
||||
|
||||
1. **Ruby** runtime MUST be available in the CI environment:
|
||||
|
||||
1. [Dredd](https://github.com/apiaryio/dredd) MUST be installed globally in the CI environment:
|
||||
```
|
||||
$ ruby -v
|
||||
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
|
||||
```
|
||||
|
||||
1. [**Dredd**](https://github.com/apiaryio/dredd) MUST be installed globally in the CI environment:
|
||||
|
||||
```
|
||||
$ npm install -g dredd --no-optional
|
||||
@@ -23,6 +30,17 @@ The following must be available in the CI environment prior to testing:
|
||||
dredd v2.2.5 (Darwin 16.4.0; x64)
|
||||
```
|
||||
|
||||
1. [**Apiary CLI Tool**](https://help.apiary.io/tools/apiary-cli) MUST be intalled globally in the CI environment:
|
||||
|
||||
```
|
||||
$ gem install apiaryio
|
||||
```
|
||||
|
||||
```
|
||||
$ apiary version
|
||||
0.8.0
|
||||
```
|
||||
|
||||
1. Apiary API Key
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user