Skip to content

HenryssonDaniel/teacup-java-report-mysql

Repository files navigation

Build Status Coverage latest release Maven Central Javadocs

What

This project makes it possible to save logs in a MySQL database rather than just publish on the screen.

Why

Save the logs to a MySQL database so that they are not deleted after each test execution, no matter what test engine you are using.

How

Follow the steps below:

  1. Add this repository as a dependency
  2. Create a file named teacup.properties in a folder named .teacup in your home folder.
  3. Add reporter=io.githb.henryssondaniel.teacup.report.mysql.DefaultReporter to the file
  4. Also add
    1. reporter.mysql.password=[password]
    2. reporter.mysql.server.name=[name]
    3. reporter.mysql.user=[user]