concept test in category elixir

This is an excerpt from Manning's book Phoenix in Action.
Tests go into the test subdirectory.
I have a surprise for you: your application already has tests! Don’t believe me? Try running mix test from the top of your application (auction_umbrella/). You’ll likely see some compilation notices and then, at the bottom, something like this:
Finished in 0.08 seconds 3 tests, 1 failureDepending on the version of Elixir and Phoenix you had when you first ran the mix new --umbrella or mix phx.new.web generators, the number of tests you have and even the number of failures may be different. One thing is for certain, though: your application already has at least one test. Doesn’t that already make you sleep better at night?[1]
use ExUnit.Case—This sets up the test module so it can run tests with the functions that ExUnit.Case provides. You’ll see those functions shortly. doctest Auction—Any module can include documentation. Not only is it helpful for you as you look at your source code, it’s used by documentation generators and is output into a nice format, like the documentation at https://hexdocs.pm. Beyond that, your documentation can include usage examples of the function being documented. In the past, that practice was frowned on, because it can be easy to let your documentation examples grow stale when your function is refactored and rewritten over the years. The beautiful thing about doctest Auction is that it actually runs the examples in your documentation as a test to verify that the results are as expected. We’ll dive into this in a later section in this chapter. test "greets the world" do ... end—A test is actually a macro (ExUnit.Case .test/3) that accepts a string as a description, some optional variables, and a code block that contains the test.
Now that we’ve briefly explored a passing and a failing test, let’s modify the test so it’s a little more helpful in your application. Your Auction module deals extensively with your database queries, so it will use Ecto and hit the database that you configure for it. Ecto has a nice guide for setting up your Ecto-using application for testing (https://hexdocs.pm/ecto/testing-with-ecto.html), but we’ll go over it briefly here.