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

Bengt Kleberg <>
Thu May 31 12:06:21 CEST 2012


The documentation is for init_per_suite/1, I was wondering about
init_per_suite/0.


bengt

On Thu, 2012-05-31 at 10:04 +0200, Abdul Fattah Mahran wrote:
> 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 in the User's Guide.
> 
> 
> Thanks,
> 
> best regards,
> 
> 
> 
> 
> 
> 
> On Thu, May 31, 2012 at 8:41 AM, Bengt Kleberg
> <> wrote:
>         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
> 
> 
> 
> -- 
> Thanks
> Best Regards,
> Abd El-Fattah Mahran
> 
> http://www.linkedin.com/in/abdoomahran
> 





More information about the erlang-questions mailing list