Hi, I'm trying to use JUnitFormatter in my Elixir 1.17 project, so I followed the steps in the ReadMe, but I notice that no JUnit XML file is being produced, even after setting the relevant config options. I even set print_report_file: true, but I don't see anything about JUnit being printed. Even if I monkey-patch JUnitFormatter's init/1 to do an IO.puts("JUnitFormatter initialized") I do not see this being printed, which leads me to believe that for some reason, JUnitFormatter is not loading.
Here's the relevant parts from my mix.exs:
defmodule NLdoc.MixProject do
use Mix.Project
...
def test_coverage() do
[
# ignore modules generated by libraries that we use.
ignore_modules: [
~r/NLdoc\.Validation\.Severity\..*/,
~r/Jason\.Encoder\..*/
],
# TODO: increase eventually
summary: [threshold: 75]
]
end
defp deps do
[
...
# Testing: mocking, snapshot testing, reporting
{:mimic, "~> 1.7", only: :test},
{:mneme, ">= 0.0.0", only: [:test]},
{:junit_formatter, "~> 3.4", only: [:test]},
...
]
end
end
Hi, I'm trying to use JUnitFormatter in my Elixir 1.17 project, so I followed the steps in the ReadMe, but I notice that no JUnit XML file is being produced, even after setting the relevant config options. I even set
print_report_file: true
, but I don't see anything about JUnit being printed. Even if I monkey-patch JUnitFormatter'sinit/1
to do anIO.puts("JUnitFormatter initialized")
I do not see this being printed, which leads me to believe that for some reason, JUnitFormatter is not loading.Here's the relevant parts from my
mix.exs
:My
test/test_helper.exs
:The JUnitFormatter config in my
config.exs
file:Is this a bug in JUnitFormatter or am I doing something wrong here?