Control the verbosity of [TESTOMATIO] prefixed messages using the TESTOMATIO_LOG_LEVEL environment variable.
| Level | Logs Shown |
|---|---|
ERROR |
Only errors |
WARN |
Warnings and errors |
INFO |
Info, warnings, and errors (default) |
# 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# GitHub Actions
- name: Run tests
run: npm test
env:
TESTOMATIO: ${{ secrets.TESTOMATIO }}
TESTOMATIO_LOG_LEVEL: WARNFor detailed debugging, use the DEBUG environment variable (uses the debug package):
DEBUG=@testomatio/reporter:* npm test
DEBUG=@testomatio/reporter:pipe:testomatio npm test- Configuration - All environment variables
- Debug File - Understanding debug output files