Functional tests versus unit tests

As with so many things in life, there is no such thing as the "better testing approach." You will need both functional tests and unit tests. Unit tests are validation for functions individually, and functional tests test your application as a whole. That being said, there are pros and cons to both approaches.

Get Hands-On Swift 5 Microservices Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.