[erlang-questions] print data to the shell during common tests

Pablo Platt <>
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 <>
To: Pablo Platt <>
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.


On Sun, Jan 30, 2011 at 12:01 AM, Pablo Platt <> 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