Skip to main content
Version: v3.x.x

reporter

Specify the reporter for test execution.

Reporters​

poku (default)​

  • Logs all describe, it, test and assert titles and messages, including their modifiers.
  • Logs only the file name for errors during the execution, then lists all logs for each failed file at the running end.

dot (inspired by Mocha)​

  • Logs a dot for each success file test and F for each failed file.
  • Lists all logs for each failed file at the running end.

compact (partially inspired by modern Tap)​

  • Lists only file paths with PASS or FAIL and, in case of failures, lists all logs for each failed file at the running end.

focus​

  • Logs only errors (in real time). If there is no error, it just logs a small footnote resume.

verbose​

  • Just like the default (poku), but logs errors both in real time and also at the running end.

classic​

  • The standard report style from version 2 to preserve our history 🐷

Usage​

CLI​

npx poku --reporter=poku # default
  • Short flag: -r.

Config File​

{
// "$schema": "https://poku.io/schemas/configs.json",
"reporter": "poku" // default
}
const { defineConfig } = require('poku');

module.exports = defineConfig({
reporter: 'poku', // default
});

API​

await poku('./test', {
reporter: 'poku', // default
});

tip
  • To debug, see debug option.
  • To quiet the output, see quiet option.
  • Both the --debug and --quiet options work with all reporters.