[erlang-questions] Common Test questions
Vasilij Savin
vasilij.savin@REDACTED
Sat Dec 26 12:42:05 CET 2009
Greetings,
I can not answer first one. Though if I recall correctly, you need to run CT
on node under test, or have ssh access to shuttle or something like that.
However, answer to second question is to put that function in
after_test_case function. Then it is guaranteed to be called after every
test case. It is worth mentioning "that after_" prefixed functions are
usually expected to perform clean up, not perform testing. Therefore such
solution could hinder later readability, unless it is well-documented.
Regards,
Vasilij Savin
On Sat, Dec 26, 2009 at 1:31 PM, ssyeoh <ssyeoh@REDACTED> wrote:
> hi,
> I have two questions concerning common test (CT).
>
> 1. How do I test an application on node A with common test running on
> another node, B (using erlang distribution) ? One way might be to wrap
> all function calls in the test suite in RPC, but is there a way CT
> would automatically do that ?
>
> 2. I would like to test a side effect function (e.g. write to file)
> after EVERY test case. Is there a way to plug this function into CT
> (through CT APIs) so that it would be automatically called after each
> test case ?
>
> thanks
> merry christmas
>
> /ssyeoh
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>
>
More information about the erlang-questions
mailing list