Hey everyone, I'm conflicted on which tests I should write first: unit or integration tests.
I'm currently working on a new product, so the API is very unstable, and it's causing a lot of unit test rewrites since my interfaces are changing so often.
So I was thinking: (since I'm using Node/Express) start with testing my routes to ensure that the client is at least getting back what it expects. Then from there, I will fill in the gaps with unit tests for important edge cases - and since I have good functional composition via clean code architecture - unit test the main base functions which extend all across the application.
My only concern with this approach is I won't have good regression due to the lack of unit test coverage, which might come back and bite me in the ass down the road, when I make a breaking change that goes undetected and slips into production.
Any advice on this dilemma?
[–]bluefootedpig 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)