Skip to Content
Python Microservices Development
book

Python Microservices Development

by Tarek Ziadé
July 2017
Beginner to intermediate
340 pages
7h 43m
English
Packt Publishing
Content preview from Python Microservices Development

Coveralls

Another popular service you can hook in your repository if you use Travis-CI and GitHub or Bitbucket is Coveralls (https://coveralls.io/). This service displays your test code coverage in a nice web UI.

Once you've added your repository in your Coveralls account, you can trigger a call to ;http://coveralls.io directly from Travis-CI by instructing Tox to ping to ;http://coveralls.io after the tests are run.

The changes in the tox.ini file are done in the [testenv] section in bold.

    [testenv]     passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH     deps = pytest        pytest-cov        coveralls        -rrequirements.txt      commands =.         pytest --cov-config .coveragerc --cov myservice myservice/tests         - coveralls

The coveralls-python package (called Coveralls ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Microservices Development - Second Edition

Python Microservices Development - Second Edition

Simon Fraser, Tarek Ziadé
Python Web Development with Sanic

Python Web Development with Sanic

Stephen Sadowski, Adam Hopkins

Publisher Resources

ISBN: 9781785881114Supplemental Content