M
M
mr_locke2011-09-02 12:38:36
Software testing
mr_locke, 2011-09-02 12:38:36

How to print debug messages from TestNG to IntelliJIDEA console?

The problem is this. There are TestNG tests, in some of them debug messages are printed using System.out.println. Development is carried out entirely in IDEA, tests are run from there (via the TestNG configuration).

When running the tests, I see that these messages are displayed in the console in black font, but then they disappear from the console and only two messages (already in blue font) from IDEA remain in it: the start line and Process finished with exit code 0 ...

Googling in general, nothing It did not give a constructive result, but it is necessary to output these messages to the console :) I suspect that TestNG “intercepts” the output to the console in order to send it to the report later. If you export a report from the test results panel in IDEA, and then open it, of course, all the output is present.

The question is as follows. How to competently and correctly solve the indicated problem? It is possible to somehow configure TestNG so that it outputs everything to the console, or to output both to the console and to the report.

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
antalus, 2011-09-02
@antalus

In the test panel, clicked the "show successfully completed tests" button?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question