Less bulky serenity-bdd console output

1.2k views Asked by At

I was so annoyed by these bulky banners written to the output of serenity execution:

864 [main] INFO net.serenitybdd.core.Serenity - 
 _____ _____ ____ _____   ____ _____  _    ____ _____ _____ ____  
|_   _| ____/ ___|_   _| / ___|_   _|/ \  |  _ \_   _| ____|  _ \ 
  | | |  _| \___ \ | |   \___ \ | | / _ \ | |_) || | |  _| | | | |
  | | | |___ ___) || |    ___) || |/ ___ \|  _ < | | | |___| |_| |
  |_| |_____|____/ |_|   |____/ |_/_/   \_\_| \_\|_| |_____|____/ 


TEST STARTED: myTest

I found this property -Dserenity.console.headings=normal and turned into this:

411 [main] INFO net.serenitybdd.core.Serenity - 
----------------
- TEST STARTED -
----------------
TEST STARTED: myTest

Is there another way to not show this useless redundant - TEST STARTED - surrounded by dashes right before having "TEST STARTED: myTest" again?

2

There are 2 answers

0
Saikat On

Solution: It can be turned off by adding the serenity.console.headings=QUIET property in your serenity.properties file (or by setting the system property directly).

Note: I have tested the same in latest serenity version i.e. 2.0.76 and it works fine.

2
Kolargol00 On

There is the property serenity.logging=QUIET in ThucydidesSystemProperty.java, but it apparently suppresses all logging from net.serenitybdd. Yes, the value must be "QUIET" in all caps... ;)