Closed bvobart closed 1 month ago
I just found something that indicates it could well be an interaction with Mneme. Apparently, Mneme.start()
indirectly also calls ExUnit.configure
, overriding the formatters
option, thus also discarding the JUnitFormatter that I'm trying to configure:
ExUnit.configure(
formatters: [Mneme.Server.ExUnitFormatter],
default_formatter: ExUnit.CLIFormatter,
timeout: :infinity
)
See https://github.com/zachallaun/mneme/blob/0b68247c910ad4402b08d74ce0ee287734b061f4/lib/mneme.ex#L411
EDIT: made an issue on Mneme's repo: https://github.com/zachallaun/mneme/issues/87
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?