Tests: A Quick Overview on Unit vs Functional Testing

Here's a super quick peek into unit tests compared to functional tests. And full disclaimer here is that depending on your circle of influence, these might be given slightly different names. Try not to dwell on that but instead the comparison and contrast presented! Unit Tests Coded tests that take a white-box visibility approach to exercising and asserting that written code, generally a specific function/method, works as it was designed. Pros: Generally very programmer-focused Very granular coverage (breaks can identify exact lines where an issue occurs) (Should) run extremely quickly Have very little test setup in ideal cases Provide full control (generally via ‘mocking’ dependencies) to exercise very specific logical paths Cons: Generally more challenging to convey coverage to other stakeholders By nature these are brittle and break with refactoring Require sets of design patterns to help ensure tests are…

0 Comments

End of content

No more pages to load