|
| ▲ | throwanem 2 days ago | parent | next [-] |
| Where feasible, I like to start a suite with a unit test that validates the unit's intended side effects actually occur, as visible in their mocks being exercised. |
| |
| ▲ | pinoy420 2 days ago | parent [-] | | I laughed. Thank you for that | | |
| ▲ | throwanem a day ago | parent [-] | | Sure. For Patreon subscribers at the $5/month tier and up, I also have a course on making integration ("e2e", "functional") tests more maintainable by eliminating side effects. |
|
|
|
| ▲ | michaelcampbell a day ago | parent | prev | next [-] |
| "never trust a test you've never seen fail." has kept me honest on more than one occasion. |
|
| ▲ | noisy_boy 2 days ago | parent | prev [-] |
| // Todo: remove return true; |
| |
| ▲ | kps 2 days ago | parent [-] | | /bin/true used to be an empty file. On my desktop here, it's 35K (not counting shared libraries), which is an asolute increase of 35K and a relative increase of ∞%. | | |
|