-- Leo's gemini proxy

-- Connecting to iveqy.com:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

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.

-- Response ended

-- Page fetched on Fri Jun 14 06:49:14 2024