Menu

Reporters

Bartek Wilczek

Reporters are a mechanism that is responsible for presenting test execution results. So far the following reporters are provided:

  • console - displays information on console (default)
  • db - logs information in to DB defined in const: reporter_db.dsn. Results saved in DB can be then seen in web interface
  • excel - an Excel XML file with the results is created in current working directory
  • junitxml - an XML file in jUnit output format is created in current working directory

Multiple reporters can be used for one test execution. Examples:

# use console reporter as default one
bubik -tMyTest

# use console reporter declared implicitly
bubik -tMyTest -rconsole

# using multiple reporters
bubik -gsanity -rdb,console,excel

Internally reporters are classes implementing Listener interface.


Related

Wiki: Home

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →