Skip to content

Commit

Permalink
add logs to JUnit XML reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jori-nordic committed Aug 26, 2022
1 parent cad09ba commit 49cafd7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ log_cli = 1
log_cli_level = WARNING
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format=%Y-%m-%d %H:%M:%S

# Include all logger output in the junit reports. This includes target logs.
junit_logging = all

# Don't include logger output for the passed test cases.
# Unfortunately, this has the side-effect of not including the target logs since
# those are printed during testcase teardown.
junit_log_passing_tests = 0

0 comments on commit 49cafd7

Please sign in to comment.