Hi Bengt,<br>It is documented<br><a href="http://www.erlang.org/doc/man/common_test.html#Module:init_per_suite-1">http://www.erlang.org/doc/man/common_test.html#Module:init_per_suite-1</a><br><br><p><a name="Module:init_per_suite-1"><span class="bold_code">Module:init_per_suite(Config) -> NewConfig | {skip,Reason} |
          {skip_and_save,Reason,SaveConfig}</span></a><br></p>
<div class="REFBODY">
<p>Types:</p>
          <div class="REFTYPES">
<span class="bold_code"> Config = NewConfig = SaveConfig = [{Key,Value}]</span><br>
</div>
          <div class="REFTYPES">
<span class="bold_code"> Key = atom()</span><br>
</div>
          <div class="REFTYPES">
<span class="bold_code"> Value = term()</span><br>
</div>
          <div class="REFTYPES">
<span class="bold_code"> Reason = term()</span><br>
</div>
        </div>
<p>       
          
          </p><p> OPTIONAL </p>
          
          <p>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 <span class="code">Config</span> parameter is the configuration data
          which can be modified here. Whatever is returned from this
          function is given as <span class="code">Config</span> to all configuration functions
          and test cases in the suite. If <span class="code">{skip,Reason}</span> 
          is returned, all test cases in the suite will be skipped
          and <span class="code">Reason</span> printed in the overview log for the suite.</p>
          <p>For information on <span class="code">save_config</span> and <span class="code">skip_and_save</span>, 
          please see 
          <span class="bold_code"><a href="http://www.erlang.org/doc/apps/common_test/dependencies_chapter.html#save_config">Dependencies 
          between Test Cases and Suites</a></span> in the User's Guide.</p><p><br></p><p>Thanks,</p><p>best regards,<br></p><br><br><br><br><div class="gmail_quote">On Thu, May 31, 2012 at 8:41 AM, Bengt Kleberg <span dir="ltr"><<a href="mailto:bengt.kleberg@ericsson.com" target="_blank">bengt.kleberg@ericsson.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings,<br>
<br>
There is no Module:init_per_suite/0 documented for Common Test test<br>
suites. Should it be?<br>
<br>
<br>
bengt<br>
<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Thanks<br>Best Regards,<div>Abd El-Fattah Mahran<br></div><div><a href="http://www.linkedin.com/in/abdoomahran" target="_blank">http://www.linkedin.com/in/abdoomahran</a>
</div><br>