P-Y on Nostr: Third: will it be unchanging, i.e. is it not brittle? A brittle test is a test that ...
Third: will it be unchanging, i.e. is it not brittle?
A brittle test is a test that fails or needs to be updated even though the external behavior of the code under test hasn't changed.
Strive to write unchanging tests: tests that only need to be updated if the external behavior changed but not after introducing refactorings, new features or bug fixes.
Fourth: is it clear?
Can I easily understand what the test is checking?
Can I easily diagnose failures?
Published at
2024-05-25 16:54:05Event JSON
{
"id": "659fb90f21827e509ad1e82d4dc3019dfc1f6046895e33a27afa98663c016cc2",
"pubkey": "2b9c6c28bce249a1ef28497a2ec6f6c01bc7be0721124b8ce7da3e1592080c57",
"created_at": 1716656045,
"kind": 1,
"tags": [
[
"e",
"6741c031b44423c9788ed326d336da635ec76ea1c472c55969db5bbfd0500a03",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://androiddev.social/users/py/statuses/112502770579325161",
"activitypub"
]
],
"content": "Third: will it be unchanging, i.e. is it not brittle?\n\nA brittle test is a test that fails or needs to be updated even though the external behavior of the code under test hasn't changed.\n\nStrive to write unchanging tests: tests that only need to be updated if the external behavior changed but not after introducing refactorings, new features or bug fixes.\n\nFourth: is it clear?\n\nCan I easily understand what the test is checking?\n\nCan I easily diagnose failures?",
"sig": "1a0c6c992e52dea01ae9f97f014cfacf2e096357bb7ece8b9db130b1af90945cce94009f0b1b75b24b974b21304491d2cf40b34fe31b089daa6b0b08822bfcd8"
}