Mix test not calling the application stop callback

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 Likes

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 Likes

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

1 Like