Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.19 KB

File metadata and controls

51 lines (37 loc) · 1.19 KB

Testomatio reporter output control

Control the verbosity of [TESTOMATIO] prefixed messages using the TESTOMATIO_LOG_LEVEL environment variable.

Levels

Level Logs Shown
ERROR Only errors
WARN Warnings and errors
INFO Info, warnings, and errors (default)

Usage

# Show only errors
TESTOMATIO_LOG_LEVEL=ERROR npm test

# Show warnings and errors
TESTOMATIO_LOG_LEVEL=WARN npm test

# Default (show all info, warnings, errors)
TESTOMATIO_LOG_LEVEL=INFO npm test
# or just
npm test

CI Example

# GitHub Actions
- name: Run tests
  run: npm test
  env:
    TESTOMATIO: ${{ secrets.TESTOMATIO }}
    TESTOMATIO_LOG_LEVEL: WARN

Debug Mode

For detailed debugging, use the DEBUG environment variable (uses the debug package):

DEBUG=@testomatio/reporter:* npm test
DEBUG=@testomatio/reporter:pipe:testomatio npm test

See Also