[erlang-questions] clarify: init_per_suite/0 in Common Test

Abdul Fattah Mahran <>
Thu May 31 10:04:10 CEST 2012

Hi Bengt,
It is documented

Module:init_per_suite(Config) -> NewConfig | {skip,Reason} |

 Config = NewConfig = SaveConfig = [{Key,Value}]
  Key = atom()
  Value = term()
  Reason = term()


This configuration function is called as the first function in the suite.
It typically contains initializations which are common for all test cases
in the suite, and which shall only be done once. The Config parameter is
the configuration data which can be modified here. Whatever is returned
from this function is given as Config to all configuration functions and
test cases in the suite. If {skip,Reason} is returned, all test cases in
the suite will be skipped and Reason printed in the overview log for the

For information on save_config and skip_and_save, please see Dependencies
between Test Cases and
the User's Guide.


best regards,

On Thu, May 31, 2012 at 8:41 AM, Bengt Kleberg

> Greetings,
> There is no Module:init_per_suite/0 documented for Common Test test
> suites. Should it be?
> bengt
> _______________________________________________
> erlang-questions mailing list
> http://erlang.org/mailman/listinfo/erlang-questions

Best Regards,
Abd El-Fattah Mahran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120531/281f4d4e/attachment.html>

More information about the erlang-questions mailing list