Re: Properly testing an OTP application after initialization

Max Lapshin <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAMxVRxBgO7R8=nWoZC1NuCZu=OrsiKn_i1+f1h3h_XwfD6z-bg@mail.gmail.com>
I do not understand what fixtures are for.


We test our flussonic in this manner:


init_per_suite(Config) ->
  application:ensure_all_started(flussonic)
  Config.


test1(_) ->
 ....

test2(_) ->
  ...


end_per_suite(Config) ->
  application:stop(flussonic),
  Config.



Some tests are touch deep internals (we do not like it), some of them
are only using external TCP connections and could be written, for
example, in Python. We like them, but they are not stable.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.