26: pyresttest – Sam Van Oort




Test & Code - Software Testing, Development, Python show

Summary: <p>Interview with Sam Van Oort about <a href="https://github.com/svanoort/pyresttest" rel="nofollow">pyresttest</a>, "A REST testing and API microbenchmarking tool"</p> <h2>pyresttest</h2> <p>A question in the <a href="http://pythontesting.net/slack" rel="nofollow">Test &amp; Code Slack channel</a> was raised about testing REST APIs. There were answers such as pytest + requests, of course, but there was also a mention of <strong>pyresttest</strong>, <a href="https://github.com/svanoort/pyresttest" rel="nofollow">https://github.com/svanoort/pyresttest</a>, which I hadn't heard of. I checked out the github repo, and was struck by how user friendly the user facing test definitions were. So I contacted the developer, Sam Van Oort, and asked him to come on the show and tell me about this tool and why he developed it.</p> <p>Here's the "What is it?" section from the pyresttest README:</p> <ul> <li>A REST testing and API microbenchmarking tool</li> <li>Tests are defined in basic YAML or JSON config files, no code needed</li> <li>Minimal dependencies (pycurl, pyyaml, optionally future), making it easy to deploy on-server for smoketests/healthchecks</li> <li>Supports generate/extract/validate mechanisms to create full test scenarios</li> <li>Returns exit codes on failure, to slot into automated configuration management/orchestration tools (also supplies parseable logs)</li> <li>Logic is written and extensible in Python</li> </ul> <h2>Support</h2> <p>Special thanks to my wonderful <a href="http://patreon.com/testpodcast" rel="nofollow">Patreon supporters</a> and those who have supported the show by purchasing <a href="http://pythontesting.net/book" rel="nofollow">Python Testing with unittest, nose, pytest</a></p><p>Sponsored By:</p><ul><li> <a rel="nofollow" href="https://www.patreon.com/testpodcast">Patreon Supporters</a>: <a rel="nofollow" href="https://www.patreon.com/testpodcast">Help support the show with as little as $1 per month. Funds help pay for expenses associated with the show.</a> </li></ul><p><a rel="payment" href="https://www.patreon.com/testpodcast">Support Test &amp; Code - Software Testing, Development, Python</a></p>