victorolinasc / junit-formatter

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

Overwrites report file in umbrella app #14

Closed DerKastellan closed 8 years ago

DerKastellan commented 8 years ago

Hi.

In my setup junit-formatter is running fine if I run individual test suites in individual apps.

However, when I run "mix test" in an umbrella app containing them all, it simply writes all report files to the same location which means the later test suites overwrite results from the earlier ones.

Maybe it could make subdirectories?

DerKastellan commented 8 years ago

PS - this even happens when I give one of the apps in the umbrella its own config.exs with a different file name.

cs-victor-nascimento commented 8 years ago

Thanks for reporting @DerKastellan and sorry it took me sometime to reply.

I will look into it (I confess I expected it to work with umbrella...)!

cs-victor-nascimento commented 8 years ago

I've published version 1.1.0 with support for umbrella projects. It now generates the report file in Mix.Project.app_path instead of build_path. This will allow for several projects to have each their own report.

Please, check it out! I will leave this one open until you confirm it solves your issue.

DerKastellan commented 8 years ago

Thank you, works for me. Writes results to ./_build/test/lib//test-junit-report.xml :smile:

cs-victor-nascimento commented 8 years ago

Can I close this one @DerKastellan ?

DerKastellan commented 8 years ago

Yes, please close this.