Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <ul> <li>Is it worth the effort for an existing solution that's in production?</li> </ul> </blockquote> <p>Yes!</p> <blockquote> <ul> <li>Would it better to ignore the testing for this project and add it in a possible future re-write?</li> </ul> </blockquote> <p>No!</p> <blockquote> <ul> <li>What will be more benefical; spending a few weeks adding tests or a few weeks adding functionality?</li> </ul> </blockquote> <p>Adding testing (especially automated testing) makes it <strong><em>much</em></strong> easier to keep the project working in the future, and it makes it significantly less likely that you'll ship stupid problems to the user.</p> <p>Tests to put in <em>a priori</em> are ones that check whether what you believe the public interface to your code (and each module in it) is working the way you think. If you can, try to also induce each isolated failure mode that your code modules should have (note that this can be non-trivial, and you should be careful to not check too carefully how things fail, e.g., you don't really want to do things like counting the number of log messages produced on failure, since verifying that it is logged at all is enough).</p> <p>Then put in a test for each current bug in your bug database that induces exactly the bug and which will pass when the bug is fixed. Then fix those bugs! :-)</p> <p>It does cost time up front to add tests, but you get paid back many times over at the back end as your code ends up being of much higher quality. That matters enormously when you're trying to ship a new version or carry out maintenance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload