6

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?

L. Holanda
  • 4,432
  • 1
  • 36
  • 44

2 Answers2

0

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.

Saikat
  • 14,222
  • 20
  • 104
  • 125
-1

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... ;)

Kolargol00
  • 1,697
  • 2
  • 17
  • 21