💾 Archived View for iveqy.com › gemlog › 2022-10-14_re_unit_test.gmi captured on 2024-05-10 at 10:27:46. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Re: What is a "unit test?"

Original post

While tests can be needed for some special software, see for example:

gemini://gemini.sh0.xyz/log/2022-10-12.gmi

I believe that tests are the wrong term. The best way of using tests is

not to test that the software does what it should do, but to make sure that

it continues to do what it's supposed to do while being changed. When

adding new features we need to make sure that old features does not break.

Good tests make you dare to do changes to the software.

Therefore, no don't test small simple functions, that's of no use.

But when adding a feature, write a tests that show that that feature work.