- cleared one offense in the rubocop_todo.yml for RapidFTR
- wrote test for a puppy program (yes, the program makes puppies!), realized we’re not sure what should be tested exactly
- learned about public and private methods and that private methods don’t have to be tested whereas you should have at least one test for every public method
- spoke about code coverage. It tells you how much of your code is tested. There are three test coverage metrics:
- C0 - percentage of lines that have been executed
- C1 - percentage of branches that have been followed
- C2 - percentage of unique paths (which is the most thorough of all!)
- SimpleCov, a good tool for making sure that every method is executed (i.e. C0) - but it does not mean that the test really tests everything in the method
- Mutant on the other hand is way more awesome! It mutates your tests (runs your tests - should pass - makes lots of different changes in your tests - tests should fail)