esl / escalus

An XMPP client library in Erlang for conveniently testing XMPP servers
Apache License 2.0
129 stars 76 forks source link

Fix incorrect escalus:{create,delete}_users/2 spec propagated down to all impls #212

Closed erszcz closed 5 years ago

erszcz commented 5 years ago

This bug shows an interesting case of "specs as documentation" and the difference between how Dialyzer and Gradualizer treat them:

IMO, usability wise Gradualizer is more convenient to quickly catch programmer typos/mistakes since it takes way less time to run it. Moreover, it reinforces the "specs as documentation" approach, as it actually points out mistakes in the specs.