lechiffre on Nostr: > As a solo developer you will seldom need more than unit tests unless you have a ...
> As a solo developer you will seldom need more than unit tests unless you have a customer who is familiar with API testing tools like Cucumber.
I find this surprising -- but I am not an industry veteran. I make extensive use of integration tests for my consumer facing webapp SaaS:
My integration test framework spins up the API and a blank database (actually, one set for each test!), and then systematically tests the system from the perspective of an API consumer (i.e., the frontend; but its tests are elsewhere).
It has been essential to make sure the API interface does what I believe it does.
Published at
2023-02-28 17:23:42Event JSON
{
"id": "2e925ba0289006b285ca6620fbda156085d6642452b2092a49f5750d459942b7",
"pubkey": "d7b76d02c758a62a505e03bd5f5049aaee4e7e36283d273c7f6798912692df2b",
"created_at": 1677605022,
"kind": 1,
"tags": [
[
"e",
"00001644e9c9938bfdbdaee9f975fd427b600ef4aa313db076a5c6b2b8520826",
"",
"root"
],
[
"e",
"000089cac63dae4f016c3db43dd46e27fa0e6702b77183044cb6d55e15891c2e",
"",
"reply"
],
[
"p",
"2ef93f01cd2493e04235a6b87b10d3c4a74e2a7eb7c3caf168268f6af73314b5"
]
],
"content": "\u003e As a solo developer you will seldom need more than unit tests unless you have a customer who is familiar with API testing tools like Cucumber.\n\nI find this surprising -- but I am not an industry veteran. I make extensive use of integration tests for my consumer facing webapp SaaS:\n\nMy integration test framework spins up the API and a blank database (actually, one set for each test!), and then systematically tests the system from the perspective of an API consumer (i.e., the frontend; but its tests are elsewhere).\n\nIt has been essential to make sure the API interface does what I believe it does.",
"sig": "ff1b4b51c858b32c57aafaad0e951688f7221f9b990afef95533b6e1ed05811710470e7e3e0b9b0c2d38d8f021722c85837fc82ed98e1aede23a72ed5ef677d8"
}