Properly testing an OTP application after initialization

Max Lapshin max.lapshin@REDACTED
Mon Sep 14 07:07:34 CEST 2020


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.


More information about the erlang-questions mailing list