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

truemped / supercell / 135
94%

Build:
DEFAULT BRANCH: master
Ran 29 Dec 2014 11:23AM UTC
Jobs 3
Files 18
Run time 49s
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

pending completion
135

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%)

2.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 135.1 29 Dec 2014 11:23AM UTC 0
94.37
Travis Job 135.1
2 135.2 29 Dec 2014 11:23AM UTC 0
94.37
Travis Job 135.2
3 135.3 29 Dec 2014 11:23AM UTC 0
94.37
Travis Job 135.3
Source Files on build 135
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #135
  • 62f45bec on github
  • Prev Build on master (#133)
  • Next Build on master (#136)
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