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

esl / MongooseIM / 3904 / 7
86%
master: 86%

Build:
DEFAULT BRANCH: master
Ran 08 Jan 2018 06:37PM UTC
Files 289
Run time 11s
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

08 Jan 2018 03:13PM UTC coverage: 19.423% (-0.004%) from 19.427%
PRESET=pgsql_mnesia DB=pgsql REL_CONFIG=with-pgsql

push

travis-ci

fenek
Use Escalus with new story_with_client_list/3 and removed apply_w_arity_check magic (#1625)

* Test Escalus story-with-clients-as-list branch

* Test Escalus PR#162 (https://github.com/esl/escalus/pull/162)

* Fail in password_can_be_changed which gave false positives

Due to:

- no bob_altpass in Config's escalus_users
- escalus_story:apply_w_arity_check/2 logic:

	apply_w_arity_check(Fun, Args) when is_function(Fun, 1) ->
		case length(Args) of
			1 -> apply(Fun, Args);  %% Fun expects one logged-in user
			_ -> apply(Fun, [Args]) %% Fun expects list of users
		end;
	apply_w_arity_check(Fun, Args) when is_function(Fun) ->
		apply(Fun, Args).

`escalus_story:clients_from_resource_counts/2` did not expand `bob_altpass` to a client spec.
An empty list was returned instead.
Length of an empty list is 0, which made control flow through the _Fun expects list of users_
clause above, which in turn lead to `StoryFun` being passed a parameter for _Bob,
but the value of this parameter was actually an empty list,
not a successfully connected client.

This change makes this problem obvious by failing with a function_clause error.

* Fix and harden rest_SUITE:password_can_be_changed/1 test

* Use fixed Escalus

5477 of 28198 relevant lines covered (19.42%)

101.87 hits per line

Source Files on job 3904.7 (PRESET=pgsql_mnesia DB=pgsql REL_CONFIG=with-pgsql)
  • Tree
  • List 0
  • Changed 18
  • Source Changed 0
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3904
  • Travis Job 3904.7
  • 3d4958c5 on github
  • Prev Job for PRESET=pgsql_mnesia DB=pgsql REL_CONFIG=with-pgsql on master (#3901.7)
  • Next Job for PRESET=pgsql_mnesia DB=pgsql REL_CONFIG=with-pgsql on master (#3912.7)
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