[ejabberd] Automated tests.
inoshiro at lindenlab.com
Mon Jan 10 21:15:02 MSK 2011
I'll check it out.
On Sat, Jan 8, 2011 at 2:54 AM, Jonas Ådahl <jadahl at gmail.com> wrote:
> Since I did something similar, so I'm dropping you a line (offlist). I
> wrote some testcode for an extension I made called mod_restful (module
> for building RESTful API's to ejabberd). You can find it here:
> On Sat, Jan 8, 2011 at 1:08 AM, Inoshiro Linden <inoshiro at lindenlab.com> wrote:
>> I'm quite surprised that ejabberd doesn't have automated tests,
>> especially considering its complexity.
>> Hopefully, with enough users, bugs are discovered and ironed out over
>> time. Does anyone have an estimate as to how many users there are of
>> ejabberd in general, for each release, and for various extensions like
>> I'm going to be writing test code for some in-house extensions. I'll
>> look into releasing the generic parts. If anyone else is doing
>> something similar, drop me a line.
>> On Thu, Dec 2, 2010 at 2:33 AM, Jonas Ådahl <jadahl at gmail.com> wrote:
>>> On Thu, Dec 2, 2010 at 12:06 AM, Badlop <badlop at gmail.com> wrote:
>>>> 2010/11/20 Inoshiro Linden <inoshiro at lindenlab.com>:
>>>>> I am writing some modifications to ejabberd. Is there an automated
>>>>> test framework? I do not see an obvious one, though I am new to
>>>> In case you are still wondering about that.
>>>> From what I know, there are three test frameworks for erlang code:
>>>> * EUnit: http://www.erlang.org/doc/apps/eunit/chapter.html
>>>> * Common Test: http://www.erlang.org/doc/apps/common_test/basics_chapter.html
>>>> * Quickcheck (proprietary): http://www.quviq.com/
>>>> I cannot offer you hints and recommendation because I didn't yet use
>>>> any of them.
>>>> No test framework is used in ejabberd yet.
>>>> BTW, I'm using Dialyzer
>>>> in ejabberd master branch, but that doesn't count as a testing
>>>> framework I guess.
>>> Another tool useful when writing tests for ejabberd modules is meck or
>>> erly_mock (you can find both on github). By mocking (or mecking) the
>>> ejabberd_modules you use, you can without having to start an ejabberd
>>> server test your modules behaviour and interaction with (a fake)
>>> ejabberd mailing list
>>> ejabberd at jabber.ru
>> ejabberd mailing list
>> ejabberd at jabber.ru
> ejabberd mailing list
> ejabberd at jabber.ru
More information about the ejabberd