• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

truemped / supercell / 135 / 3
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 29 Dec 2014 11:23AM UTC
Files 18
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Dec 2014 11:15AM UTC coverage: 94.374% (+0.1%) from 94.253%
135.3

push

travis-ci

truemped
Simplify integration testing of services

This adds a new `AsyncHTTPTestCase` base class that inherits from the
`tornado.testing.AsyncHTTPTestCase`. The idea is to have a set of best
practices when creating integration tests for Supercell services.

This class by default re-uses the same `IOLoop` by overriding
`get_new_ioloop`. Using the `pytest` `monkeypatch` fixture we set the
command line defined by the class level variable `ARGV`. This can be
used to pass custom configuration values to the service.

Finally the service to test is defined in the class level variable
`SERVICE`. A fully functional example would be::

    class MyIntegrationTest(AsyncHTTPTestCase):

        ARGV = ['--es=127.0.0.1:9200']
        SERVICE = MyService

        def test_ping(self):
            resp = self.fetch('_system')
            self.assertEquals(200, resp.code)

671 of 711 relevant lines covered (94.37%)

0.94 hits per line

Source Files on job 135.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 135
  • Travis Job 135.3
  • 62f45bec on github
  • Prev Job for on master (#133.3)
  • Next Job for on master (#136.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc