Sample Python script for initiating test runs and checking for the results
Python
Latest commit cd89a59 Feb 10, 2017 @johnsheehan johnsheehan committed on GitHub Merge pull request #2 from heitortsergent/patch-2
Update README
Permalink
Failed to load latest commit information.
.gitignore Initial commit Feb 8, 2017
LICENSE Initial commit Feb 8, 2017
README.md Update README Feb 9, 2017
app.py Update app.py to use env variable for access token Feb 9, 2017
requirements.txt add script Feb 8, 2017

README.md

python-trigger-sample

Sample Python script for initiating test runs and checking for the results. Use this script in your CI process to start test runs and change the build status based on the result of the tests. If any of the triggered tests fail, the script will exit with a non-zero error code.

Usage

  • Install requirements (virtualenv recommended): pip install -r requirements.txt
  • Set the environment variable RUNSCOPE_ACCESS_TOKEN in your CI provider
  • Run with a Trigger URL as the sole parameter: python app.py https://api.runscope.com/radar/:uuid/trigger

Generating an API key