|
|
|
|
|
by zulgan
2169 days ago
|
|
this is our take on it: https://eng.rekki.com/unit-testing-at-rekki/t.txt TLDR: * test your core, make sure your core is strong
* don't test your http api
* don't mock
* don't test writing and reading from the database
* don't complicate your code to make it testable
* ... unless you deem fit
|
|
How are you meant to write a unit test for a class without mocking out external dependencies? Wouldn't that make it an integration test?