How to debug or get verbose output from a ct test?

632 views Asked by At

I am running a ct test and my setup is failing, and thus the test suite is skipped.

*** FAILED {test_suite_name_here_SUITE,init_per_suite} ***

My question is how to debug the run of the test suite? And secondly how to get verbose output from the test run which tells me what went wrong.

1

There are 1 answers

3
vkatsuba On BEST ANSWER

You can try to use ct:comment("Output some variable when success ~p", [SomeVar]) and ct:fail("Output some variable when fail ~p", [SomeVar]) - this should helpful for output for success and fail cases. But some time you cannot do it, by reason that something wrong with template of tests, so in this case you need investigate the template what you try to use, for more info you can take a look to awesome online book where you can get a lot of info about Common Tests and not only.