I think the answer would be it heavily depends on what you are doing.
if you are creating a library that operates on a protocol, unit tests are necessary / extremly important.
if you are writing a ERP where a lot of your code NEEDS to operate WITH the database you are better of with integration tests, because mocking away the database would lead to so much bugs, especially if your database is extremly important (and not just a dumb datastore)
Edit: having any tests is always better than having none.
if you are writing a ERP where a lot of your code NEEDS to operate WITH the database you are better of with integration tests, because mocking away the database would lead to so much bugs, especially if your database is extremly important (and not just a dumb datastore)
Edit: having any tests is always better than having none.