[erlang-questions] is EUnit test run in verbose mode?

30 views
Skip to first unread message

Motiejus Jakštys

unread,
Oct 17, 2012, 1:48:53 PM10/17/12
to erlang-q...@erlang.org
Hi,

I want to know if particular test instance is ran in verbose mode.

For example, this is the way run PropEr test from EUnit:

z_string_test_() ->
Opts = [{to_file, user}],
[
?_assertEqual(true, proper:quickcheck(s_utf8a(), Opts))
].

Option `{to_file, user}' makes it possible to see the output of PropEr
if I need it. However, I want to switch that option on only if EUnit
test is started in verbose mode.

Is there a way to know verbosity of the test run?

Regards,
Motiejus
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Motiejus Jakštys

unread,
Oct 20, 2012, 1:37:49 PM10/20/12
to erlang-q...@erlang.org
ping

On Wed, Oct 17, 2012 at 6:48 PM, Motiejus Jakštys <desir...@gmail.com> wrote:
> Hi,
>
> I want to know if particular test instance is ran in verbose mode.
>
> For example, this is the way run PropEr test from EUnit:
>
> z_string_test_() ->
> Opts = [{to_file, user}],
> [
> ?_assertEqual(true, proper:quickcheck(s_utf8a(), Opts))
> ].
>
> Option `{to_file, user}' makes it possible to see the output of PropEr
> if I need it. However, I want to switch that option on only if EUnit
> test is started in verbose mode.
>
> Is there a way to know verbosity of the test run?
>
> Regards,
> Motiejus

--
Motiejus Jakštys

Reply all
Reply to author
Forward
0 new messages