yenk :
I am trying to display colors when I execute test but it does not work for spring 2
i tried
spring.output.ansi.enabled=always
still same result.
i tried this website:
Enable Color in Spring Boot Test Console Log
but get only "black and white", the colors never shows up
I have maven 3.5.2 and spring/boot 2
Book Of Zeus :
What is your pom.xml configuration. Depending on which group/artifact you are using to run the mvn verify
.
I am using the org.codehaus.mojo
and I was never able to make it work, I switched to org.springframework.boot/spring-boot-maven-plugin and it worked for me.
Try this configuration and try again:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>pre-integration-test</id>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>post-integration-test</id>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
EDIT: In addition, make sure you have:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>