Elixir Tips

Elixir Tips

  • Alexander Koutmos

    akoutmos

    akoutmos

    ExUnit Test Coverage

    ExUnit is packed with plenty of great develop experience-related goodies. One of my favotites is the built-in coverage reporter!
    $ mix test --cover
    Cover compiling modules ...
    ..
    
    Finished in 0.06 seconds
    1 doctest, 1 test, 0 failures
    
    Randomized with seed 213130
    
    Generating cover results ...
    
    Percentage | Modules
    -----------|---------------------------
       100.00% | CoverageTest
    -----------|---------------------------
       100.00% | Total
    
    Generated HTML coverage results in "cover" directory
    
    41 upvotes