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

Feature Request: display file name and line number on failed tests #36

Closed josephan closed 4 years ago

josephan commented 4 years ago

Hello, thank you for creating this library. What do you think about adding the file name and line number of a failed test? If you see the failed test file and line number so you can run the specific test locally right away with: mix test test/some_test_file.exs:10

JUnit formatter in CircleCI

Without file name and line number: Screen Shot 2019-11-19 at 7 24 58 PM

With file name and line number: Screen Shot 2019-11-19 at 7 24 47 PM

victorolinasc commented 4 years ago

Hey @josephan ! Thanks for your request!

We have recently added the stacktrace pretty printed. In your example, if you open "more" you should probably see the file with line numbers in the stack trace as if it is shown in ex_unit.

Does that help?

josephan commented 4 years ago

@victorolinasc ah you right, I didn't see that. Thanks for pointing that out ❤️