Skip to content

Commit

Permalink
Configure JUnit formatter and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed May 29, 2024
1 parent 806c562 commit fa5c6b3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ config :mix_systemd,
"PORT=8080",
["RELEASE_TMP=", :runtime_dir]
]

config :logger, :default_formatter,
format: "$time $metadata[$level] $message\n",
metadata: [:file, :line]
16 changes: 16 additions & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
import Config

config :logger,
level: :warning,
always_evaluate_messages: true

config :logger, :default_formatter,
format: "$time $metadata[$level] $message\n",
metadata: [:file, :line]

config :junit_formatter,
report_dir: "#{Mix.Project.build_path()}/junit-reports",
automatic_create_dir?: true,
print_report_file: true,
# prepend_project_name?: true,
include_filename?: true,
include_file_line?: true

0 comments on commit fa5c6b3

Please sign in to comment.