Working through Programming Phoenix. In Chapter 8 Testing MVC, I’ve added the tests as listed in the book and they pass as expected, but I noticed a HUGE difference in the time it takes.
Anyone else come across the same issue? Any suggestions on how to get my tests running as fast as expected?
I’ve tried running the tests as they are provided in the book’s source code, but since it’s a little bit of a older book, it looks like it’s incompatible with the version of Elixir and/or Erlang on my machine.
Are the slow tests by any chance related to the user password hashing?
I dont remember exactly if the book uses bcrypt but if thats the case do you have the correct setup on your test config?
If I remember correctly, the book first lets you experience that tests are getting slower, then it explains how to fix it with the config approach you mentioned.