Closed bvobart closed 4 weeks ago
Thanks for the report! Yes, I can definitely get this resolved. I'll try to get it addressed either later today or this weekend. 🙂
@bvobart Would you mind trying out main
and seeing if the issue is resolved?
{:mneme, github: "zachallaun/mneme", ref: "main", only: :test}
Hi @zachallaun, great, thanks for the fix!! I've tested with main
and the issue is indeed resolved: JUnitFormatter is now initialized and run properly! 🥳
Thanks for your work and I'm looking forward to the release so we can close this issue!
Thanks @bvobart!
Closed by 524ccc94879da473ffa8de0e669dc1734353a350, released as 0.9.1.
Hi :)
I want to use JUnitFormatter to produce JUnit-style XML reports of my test runs on CI, but I couldn't get it working. It's supposed to work by setting it as an ExUnit formatter, i.e. putting
ExUnit.configure(formatters: [JUnitFormatter, ExUnit.CLIFormatter])
intest_helper.exs
beforeExUnit.start()
However, I found that this conflicts with Mneme, as Mneme requires
Mneme.start()
afterExUnit.start()
and, more problematically, overwrites any previously configuredformatters
, see https://github.com/zachallaun/mneme/blob/0b68247c910ad4402b08d74ce0ee287734b061f4/lib/mneme.ex#L411:Could you fix this? I believe the fix would be as simple as retrieving any already configured formatters and then appending Mneme's formatter to that in this call to
ExUnit.configure
.