Mix test not calling the application stop callback

testing
Tags: #<Tag:0x00007f46fed8b318>

#1

Hello all,

When I run mix test the application start/2 callback is called, I would expect the stop/1 callback to be called too when my tests finish. This is not the case anyone know why ?

Regards


#2

We won’t call it by default but you can use System.at_exit and stop the application if you would like to. The reason is that the majority of developers do not do anything on shutdown and it is faster to simply terminate the whole VM in those cases.


#3

Thank you very much, that solved my problem :slight_smile: