dredd_testing

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"

Visit original content creator repository
https://github.com/KIVagant/dredd_testing

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *