zkessin/testing-erlang-book

Guidance for Dialyzer and EUnit playing nicely as part of a build?

Opened this issue · 1 comments

Not sure if this fits within the scope you have for the book, but would it be possible to get some guidance on getting Dialyzer and EUnit to play nicely as part of a build.

As someone still digging into getting a build setup for Erlang, with the goal to add in Dialyzer as part of the build process. I tried adding in Dialyzer as part of the build process, after the EUnit task, but could not get Dialyzer integrated into the build process as it was intent on using the beam files generated for EUnit. (It kept complaining about all of my modules already being defined since it was finding those from a compile as well as from the EUnit compile and run.) I was not able to find any obvious guidance around that issue, and wasn't sure if this book would be an appropriate medium to touch on that.

Are you building with Rebar? If not try that, but I will add a section on this.