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

Configuration for optional per-application directory prefix #46

Closed magnetised closed 2 years ago

magnetised commented 2 years ago

This improves integration with e.g. CircleCI, which expects report files to be placed in a sub-directory and will use the sub-directory name as a label for the test results.

With this new use_project_subdirectory? configuration, report files will be named as "#{report_dir}/#{application_name}/#{report_file}".

If this config is turned on then I also added a default to automatically create the report dir, as otherwise I think it would just error for everyone on the first use.

victorolinasc commented 2 years ago

Awesome contribution thanks!