Skip to Content
Phoenix Web Development
book

Phoenix Web Development

by Brandon Richey
April 2018
Beginner to intermediate content levelBeginner to intermediate
406 pages
9h 33m
English
Packt Publishing
Content preview from Phoenix Web Development

Writing our user unit tests

Before you ever start to add new tests to your application, you should always take a quick step back to verify that your test suite is currently green, so let's do that very quickly before we do anything else:

$ mix testCompiling 3 files (.ex)Generated vocial app...........Finished in 0.2 seconds11 tests, 0 failuresRandomized with seed 742658

Seeing that our test suite is currently green, we can confidently move on and start writing more of our test suite. We'll need to create a new directory and file, similar to what we did previously with adding the new context to our application. Generally speaking, writing tests for your context is enough since it should cover the functionality of your schemas nearly 100%, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Phoenix in Action

Phoenix in Action

Geoffrey Lessel
Real-Time Phoenix

Real-Time Phoenix

Stephen Bussey

Publisher Resources

ISBN: 9781787284197Supplemental Content