O'Reilly logo

Programming Phoenix by Jose Valim, Bruce Tate, Chris McCord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wrapping Up

With these final tests, we’re finally done. We’ve accomplished a lot:

  • We examined how tests work in Phoenix.

  • We set up some basic testing functions to insert users and videos, and shared those across all of our potential test cases.

  • We wrote some basic integration tests, bypassing only our authentication plug.

  • We used Phoenix test helpers to make multiple assertions in a compact way.

  • We tested our authentication plug in isolation.

  • We tested our views.

  • We tested models with and without side effects.

Raise a cheer, because we’re through Part I! You should now be able to use Plug, Ecto, and Phoenix to build traditional request/response features for your application and test each of those concepts. Part II will be even more exciting, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required