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

Option to include file line along with filename #40

Closed icehaunter closed 3 years ago

icehaunter commented 3 years ago

Thanks for the awesome project!

I am really happy about this package having an option to include filenames in test suites - it makes integration with various test-parsing tools much easier! However I encountered an issue when trying to make use of a JUnit report parser for Github Actions.

You see, that parser generates nice annotations on the PR pointing to the test which has failed. However, it cannot point to the proper test. It can point only to the file, since it doesn't know about the line at which the failure occurred.

So, think it would be great if we had an option to append a :line to the file property on the testcases.

Thanks!