KIVagant / dredd_testing

Read this topic https://habrahabr.ru/company/englishdom/blog/322130/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub API specifications and testing

Before start

  • Go to the Apiary.io and create new project, for example https://app.apiary.io/githubtest5/tests/runs#tutorial
    • Go to the Tutorial tab and find your apiaryApiKey and apiaryApiName. Skip other instructions on the page.
  • Setup a new token 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

Run with Vagrant

Requirements

Execution

  • Put your Apiary parameters and GitHub token below and run commands:
vagrant box update
DREDD_GITHUB_TEST_PATH=<path-to-dir-with-current-file> 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: 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"

About

Read this topic https://habrahabr.ru/company/englishdom/blog/322130/

License:MIT License


Languages

Language:JavaScript 52.4%Language:PHP 22.3%Language:Ruby 18.1%Language:Shell 7.2%