Ben Pate 🤘 on Nostr: Just this: there are tons of ways that an API call can fail, but most Fediverse ...
Just this: there are tons of ways that an API call can fail, but most Fediverse software just returns something unhelpful, like 500 Internal Server Error.
For production software, that’s probably reasonable, but a well-written test suite should help people debug, not just tell them about the bug.
So if I have a voice, a test suite should really return errors like: “this message was not accepted because it is missing a ‘name’ field.”
npub1u27r9h3j9pvrplaffsmpn698e8xhmuqhdgcxldv67ammql9pumnqha3qfq (npub1u27…3qfq) npub1fmhk33ta7scnlmhdur3xvju4w29qlc0kare9pkqupt2efe4lae8qashpey (npub1fmh…hpey)
For production software, that’s probably reasonable, but a well-written test suite should help people debug, not just tell them about the bug.
So if I have a voice, a test suite should really return errors like: “this message was not accepted because it is missing a ‘name’ field.”
npub1u27r9h3j9pvrplaffsmpn698e8xhmuqhdgcxldv67ammql9pumnqha3qfq (npub1u27…3qfq) npub1fmhk33ta7scnlmhdur3xvju4w29qlc0kare9pkqupt2efe4lae8qashpey (npub1fmh…hpey)