Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,674 members, 7,820,363 topics. Date: Tuesday, 07 May 2024 at 01:41 PM

Why You Should Write Tests? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Why You Should Write Tests? (733 Views)

How To Conduct Data-driven Tests With Scandium / Passing Remote Job Interview Tests and land high paying tech jobs / The 8 Tips For Improving Your Website Tests & Processes. (2) (3) (4)

(1) (Reply)

Why You Should Write Tests? by harryobas: 10:31am On Jul 26, 2018
Why Should You Write Tests?
Here’s why:

It builds a safety net against errors (especially useful for refactoring)
If you don’t have a test suite then you don’t want to touch your code, because of the fear of something breaking…

…having tests increases your confidence!

It helps document your code
Your tests describe what your application should be doing.

It gives you a feedback loop
When you are doing TDD you get a feedback loop that tells you what to focus on next, useful if you get distracted easily.

It helps you make sure your code is producing the results you expect
This one is important!

If you are writing some complex logic, then you want to make sure it’s working with many different inputs & not just with one example you came up with.

Tests can help you uncover corner cases & document them.

It helps you land a developer job
Most job applications will appreciate your testing skills, increasing your chances of landing the job.

(1) (Reply)

Codecamp In Osun State Very Soon / Programming App / Prestashop Advance Wishlist Addon By Knowband

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.