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

Abdul Fattah Mahran abdoo.mahran@REDACTED
Thu May 31 10:04:10 CEST 2012


Hi Bengt,
It is documented
http://www.erlang.org/doc/man/common_test.html#Module:init_per_suite-1

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

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

 OPTIONAL

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
suite.

For information on save_config and skip_and_save, please see Dependencies
between Test Cases and
Suites<http://www.erlang.org/doc/apps/common_test/dependencies_chapter.html#save_config>in
the User's Guide.


Thanks,

best regards,




On Thu, May 31, 2012 at 8:41 AM, Bengt Kleberg
<bengt.kleberg@REDACTED>wrote:

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



-- 
Thanks
Best Regards,
Abd El-Fattah Mahran
http://www.linkedin.com/in/abdoomahran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120531/281f4d4e/attachment.htm>


More information about the erlang-questions mailing list