pytest: improve logging a bit

This commit is contained in:
Johannes Kirschbauer
2025-07-02 12:35:02 +02:00
parent 6a411250b7
commit e6b163cb7a

View File

@@ -34,8 +34,9 @@ clan_lib = [
[tool.pytest.ini_options]
testpaths = ["tests", "clan_cli", "clan_lib"]
faulthandler_timeout = 240
log_level = "DEBUG"
log_format = "%(message)s"
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "%(message)s"
addopts = "--durations 5 --color=yes --new-first -W error -n auto" # Add --pdb for debugging
norecursedirs = ["clan_cli/tests/helpers", "clan_lib/nixpkgs"]
# All tests which evaluate any nix library code from clan-core need to use the