victorolinasc / junit-formatter

A JUnit XML report exporter for Elixir's ExUnit
https://hexdocs.pm/junit_formatter/
Apache License 2.0
110 stars 37 forks source link

ExUnit deprecation in Elixir 1.5 #25

Closed blatyo closed 7 years ago

blatyo commented 7 years ago
warning: passing GenEvent handlers (JUnitFormatter in this case) in the :formatters option of ExUnit is deprecated, please pass a GenServer instead. Check the documentation for the ExUnit.Formatter module for more information
  (ex_unit) lib/ex_unit/event_manager.ex:34: ExUnit.EventManager.add_handler/3
  (elixir) lib/enum.ex:675: Enum."-each/2-lists^foreach/1-0-"/2
  (elixir) lib/enum.ex:675: Enum.each/2
  (ex_unit) lib/ex_unit/runner.ex:29: ExUnit.Runner.configure/1
  (ex_unit) lib/ex_unit/runner.ex:7: ExUnit.Runner.run/2
cs-victor-nascimento commented 7 years ago

Ouch... I guess its time to update to latest. I will try to take a look at this during next week.

cs-victor-nascimento commented 7 years ago

Being having some difficulties as discussed in #26. Please feel free to tag along there.

cs-victor-nascimento commented 7 years ago

Released 2.0.0 with Elixir 1.4+ compatibility which fixes all the warnings. Please, feel free to re-open the issue if there are any other warnings.

blatyo commented 7 years ago

Thanks!