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

processone / ejabberd / 1289
30%
master: 35%

Build:
Build:
LAST BUILD BRANCH: dl-invites-fixups
DEFAULT BRANCH: master
Ran 24 Mar 2016 09:21AM UTC
Jobs 2
Files 176
Run time 4min
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
1289

push

travis-ci

mremond
Allow running test groups independently

We need to be able to run only a few test groups, even if we do not have all
database backends installed and configured locally.

ejabberd test suite configures a specific host per backend. I changed ejabberd
to allow ignoring some hosts from config file on start, by providing the exact
list of hosts we want to start.

This is done by setting an ejabberd app Erlang environment variable 'hosts' and
passing the list of hosts we want to actually define.

When doing so, the backend specific hosts defined in ejabberd test configuration file
are simply ignored. As a result, we do not try to connect to unavailable backends.

I linked that part to CT run test by defining the hosts list based on environment variable
CT_BACKENDS. This variable is expected to be a comma separated list of available backends.

When Erlang Common Tests are run with that environment variable set, only the host matching
the name of the backend will be set, plus the default "localhost", common to many tests.

This can be combined with rebar ct groups list.

Example commands to run tests:
CT_BACKENDS=riak,mnesia rebar ct suites=ejabberd
CT_BACKENDS=mnesia rebar ct suites=ejabberd groups=mnesia

11211 of 37291 relevant lines covered (30.06%)

147.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1289.1 24 Mar 2016 09:26AM UTC 0
30.1
Travis Job 1289.1
2 1289.2 24 Mar 2016 09:21AM UTC 0
30.09
Travis Job 1289.2
Source Files on build 1289
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1289
  • a3a33bd5 on github
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