[erlang-questions] print data to the shell during common tests
Pablo Platt
pablo.platt@REDACTED
Sun Jan 30 02:12:12 CET 2011
I didn't see the ct module at http://erldocs.com
The edoc of ct/print/2 probably need to be corrected, I'll file a bug:
print(X1, X2) -> term()
Equivalent to print(Category, Format, Args).
Now I can print to the log with ct:pal/3 but can't see it in the shell.
________________________________
From: Lukas Larsson <garazdawi@REDACTED>
To: Pablo Platt <pablo.platt@REDACTED>
Cc: erlang-questions@REDACTED
Sent: Sun, January 30, 2011 2:39:33 AM
Subject: Re: [erlang-questions] print data to the shell during common tests
You can use either ct:print/3 or ct:pal/3 to print to the shell within a
testcase in common_test.
Lukas
On Sun, Jan 30, 2011 at 12:01 AM, Pablo Platt <pablo.platt@REDACTED> wrote:
> Hi
>
> Is it possible to print info to the shell during a test when using common
> tests?
> io:format/2 doesn't work because ct redirect standard output.
> I'm running tests using rebar:
> /rebar ct
>
> Thanks
>
>
>
More information about the erlang-questions
mailing list