https://github.com/kivagant/dredd_testing
Read this topic https://habrahabr.ru/company/englishdom/blog/322130/
https://github.com/kivagant/dredd_testing
apiary dredd
Last synced: about 1 year ago
JSON representation
Read this topic https://habrahabr.ru/company/englishdom/blog/322130/
- Host: GitHub
- URL: https://github.com/kivagant/dredd_testing
- Owner: KIVagant
- License: mit
- Created: 2017-01-27T21:17:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-09T17:12:49.000Z (about 9 years ago)
- Last Synced: 2025-01-30T07:43:04.504Z (about 1 year ago)
- Topics: apiary, dredd
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub API specifications and testing
## Before start
- Go to the Apiary.io and [create new project](https://app.apiary.io/),
for example ```https://app.apiary.io/githubtest5/tests/runs#tutorial```
- Go to the [Tutorial tab](https://app.apiary.io/)
and find your ```apiaryApiKey``` and ```apiaryApiName```. Skip other instructions on the page.
- [Setup a new token](https://github.com/settings/tokens) for the test goals with scopes: *gist, user:email*.
Do not forget to copy new token before closing tab.
- Checkout this repo to some folder
## Tested API Specifications
- Look into [github-api.md](/github-api.md). You can copy it into your https://app.apiary.io/ Editor to play online.
## Run with Vagrant
### Requirements
- [Vagrant](https://www.vagrantup.com)
### Execution
- Put your Apiary parameters and GitHub token below and run commands:
```
vagrant box update
DREDD_GITHUB_TEST_PATH= APIARY_API_KEY=<...> APIARY_API_NAME=<...> GITHUB_API_TOKEN=<...> vagrant up"
```
- After first launch you can run ```vagrant ssh``` and ```cd /var/dredd_test && composer check```
## OR Installing to localhost
### Requirements
- NodeJs and Npm.
- PHP 7.
- [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx): ```curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer```
### Installation steps
- Run: ```composer install && npm install```
### Execution on localhost
- Put your Apiary parameters and GitHub token below and run the command:
```
APIARY_API_KEY=<...> APIARY_API_NAME=<...> GITHUB_API_TOKEN=<...> composer check"
```