Let's learn about Unit Testing via these 79 free stories. They are ordered by most time reading created on HackerNoon. Visit the /Learn Repo to find the most read stories about any technology.
1. Are Unit Tests a Waste of Your Time?
Unit tests are just a waste of time: you'll always end up spending more effort maintaining them than writing code
2. What Product Managers Should Know About App Testing
 Even if you are not directly concerned with QA and testing, it is recommended that you at least know the types of tests that need to be run at various...
Even if you are not directly concerned with QA and testing, it is recommended that you at least know the types of tests that need to be run at various...
3. How to Manipulate DateTime in .NET to Help you Code Better
 Testing code that uses .NET's
Testing code that uses .NET's DateTime.Now sucks!!!!  This is how to mock them, to properly validate DateTime when writing unit tests.
4. How to Start Using Diffblue Cover: Community Edition For Unit Testing
 Automating the writing of unit tests, the bugbear of every software developer
Automating the writing of unit tests, the bugbear of every software developer
5. Code Coverage: How to Measure You've Done Enough Testing
 In this article you will learn what code coverage is, how code coverage is calculated, and how much code coverage to aim for in your tests.
In this article you will learn what code coverage is, how code coverage is calculated, and how much code coverage to aim for in your tests.
6. Everything Technical Project Managers Need to Know About End-to-End Testing
 End-to-end testing is a technique to test a software’s workflow from start to end to ensure it works as expected.
End-to-end testing is a technique to test a software’s workflow from start to end to ensure it works as expected.
7. Tips, Tools, and Best Practices for Optimizing Unit Testing in JavaScript
 Learn how to improve the performance of your JavaScript unit tests with this comprehensive guide.
Learn how to improve the performance of your JavaScript unit tests with this comprehensive guide.
8. Avoiding the Pitfalls of Unit Test High Code Coverage With TDD
 High unit test code coverage is often viewed as a key indicator of code quality, but it's important to focus on the quality of the unit tests, not just the cod
High unit test code coverage is often viewed as a key indicator of code quality, but it's important to focus on the quality of the unit tests, not just the cod
9. Basics of Unit Testing in Software Development
 Testing your code is an important part of the software development process. Learn why it's so important and the most common way of testing.
Testing your code is an important part of the software development process. Learn why it's so important and the most common way of testing.
10. Testing REST APIs easily in Python with pyhttptest
 Nowadays every one of us is facing REST APIs by either developing or consuming such a service. Also, we’re in the trendy era of microservices, where we splitting our business logic into small separate services independent from each one. Mostly these services follow RESTful principles and using the JSON format for communication, which became the most widely used format, because of its simplicity.
Nowadays every one of us is facing REST APIs by either developing or consuming such a service. Also, we’re in the trendy era of microservices, where we splitting our business logic into small separate services independent from each one. Mostly these services follow RESTful principles and using the JSON format for communication, which became the most widely used format, because of its simplicity.
11. To Err is Human, to Test is Divine
 We are humans, we forget, we make mistakes, we change things, ideas; This happens when we work solo, imagine when you are in a team!
We are humans, we forget, we make mistakes, we change things, ideas; This happens when we work solo, imagine when you are in a team!
12. Navigating Unit Tests with Google's Bigquery
 Unit testing with bigquery is hard. See how we built robust unit testing suites for data pipelines that use bigquery
Unit testing with bigquery is hard. See how we built robust unit testing suites for data pipelines that use bigquery
13. How To Write Unit Tests, Elegantly
 “If you don’t like unit testing your product, most likely your customers won’t like to test it either.” — Anonymous
“If you don’t like unit testing your product, most likely your customers won’t like to test it either.” — Anonymous
14. Fully Covering I/O File Based Applications in .NET C# Using Unit Tests
 How to achieve 100% coverage of I/O file based applications in DotNet (.NET) CSharp (C#) Test Driven Development (TDD) Development Software Best Practices
How to achieve 100% coverage of I/O file based applications in DotNet (.NET) CSharp (C#) Test Driven Development (TDD) Development Software Best Practices
15. Unit Test AWS Lambda in Go
When I started working in Go and AWS Lambda, one of the difficulties that I faced was unit testing. I had a decent idea about what is unit testing and knew how to do it in Ruby but in Go, I had no idea because I was a beginner.
16. Building A Test Runner in Jest - A How-To Guide
I use Jest nearly every day when working, and it's a fantastic tool. It lets me ship my code with confidence, knowing that I have produced something which works as intended.
17. How to Write Unit Tests in Xcode for iOS Projects: A Quick Guide
 Here's a quick and easy guide to writing unit tests for iOS projects in Xcode.
Here's a quick and easy guide to writing unit tests for iOS projects in Xcode.
18. Unit Testing Sass: Functions 🧪
 Did you know you could unit test your Sass/Scss? No? Me neither.
Did you know you could unit test your Sass/Scss? No? Me neither.
19. The Difference Between Unit Testing and Integration Testing
 Read the article to know the definition, key characteristics & benefits of two of the most common types of tests - unit and integration testing.
Read the article to know the definition, key characteristics & benefits of two of the most common types of tests - unit and integration testing.
20. Understanding Unit Testing in Python
 Testing is a method of checking individual units of source code to confirm it works optimally before shipping code to production.
Testing is a method of checking individual units of source code to confirm it works optimally before shipping code to production.
21. How To Get More Out of Writing Tests in Your Development Routine
 TL;DR
TL;DR
22. How to Write Your First Model Tests Using RSpec in Rails Applications
 Latest August of this year I started to learn Rails. I was following the book Ruby on Rails Tutorial from Learn Enough To Be Dangerous website which uses Minitest to test their application.  Truth is: I was not understanding a single line of code about those tests. So I decided to skip them and try to write it using RSpec because the syntax is way more similar to human language than others. But you may be wondering:
Latest August of this year I started to learn Rails. I was following the book Ruby on Rails Tutorial from Learn Enough To Be Dangerous website which uses Minitest to test their application.  Truth is: I was not understanding a single line of code about those tests. So I decided to skip them and try to write it using RSpec because the syntax is way more similar to human language than others. But you may be wondering:
23. Taking a Look under the Hood to See How Jest Finds Related Tests
 Learn how Jest finds related tests in an optimal way using the Breadth First Search (BFS) algorithm and how to leverage its API in your local development enviro
Learn how Jest finds related tests in an optimal way using the Breadth First Search (BFS) algorithm and how to leverage its API in your local development enviro
24. How to Use Assertion Scopes to Execute Multiple Assertions in C#
 Fluent Assertions is a .NET library that provides use with a bunch of useful extension methods that allow us to test our C# code in a more natural way
Fluent Assertions is a .NET library that provides use with a bunch of useful extension methods that allow us to test our C# code in a more natural way
25. Why You Need to Stop Writing Unit Tests
 The way you test has a huge impact on your codebase maintainability. There is  a simple way to improve it
The way you test has a huge impact on your codebase maintainability. There is  a simple way to improve it
26. Writing Better Tests With Cypress' Page Object Model
 Page Object Model (POM) is the most popular design pattern for test automation, and that's how you should implement it on your project!
Page Object Model (POM) is the most popular design pattern for test automation, and that's how you should implement it on your project!
27. Best Practices to Write Unit Tests the Right Way (Part 2)
 All you need to know about unit testing LINQ and mappings in .NET to make more reliable code faster as you develop software using systems like AutoMapper
All you need to know about unit testing LINQ and mappings in .NET to make more reliable code faster as you develop software using systems like AutoMapper
28. How to Become a Pro Debugger
 Debugging is not something that is taught to anyone at any point in their careers, which leads to the belief that it is very difficult.
Debugging is not something that is taught to anyone at any point in their careers, which leads to the belief that it is very difficult.
29. How Good Are We At Writing Tests?
 This is some thoughts about TDD and how things don't always work out perfectly even with the best-written tests when developing new software on a deadline.
This is some thoughts about TDD and how things don't always work out perfectly even with the best-written tests when developing new software on a deadline.
30. I Pushed my Code to the Master Branch Without Tests
 Until I stumbled upon TDD, I had never really understood tests. I remember writing a whole project without tests and publishing it. Can you believe it?
Until I stumbled upon TDD, I had never really understood tests. I remember writing a whole project without tests and publishing it. Can you believe it?
31. Just Enough Testing: How Many Automated Tests Should We Write?
 How many automated tests should you write? Just Enough. Just Enough Testing balances the need to ship with the quality your customers deserve.
How many automated tests should you write? Just Enough. Just Enough Testing balances the need to ship with the quality your customers deserve.
32. Property-Based Testing: The Diamond Kata, First and Last Line Content
Intro
33. Why I Unit Test My Sass: Mixins 🧪
 Besides testing functions, did you know you can test mixins as well?
Besides testing functions, did you know you can test mixins as well?
34. Automated Testing with GitHub Actions
 Hands-on tutorial on automating your unit tests using the CI/CD platform GitHub Actions.
Hands-on tutorial on automating your unit tests using the CI/CD platform GitHub Actions.
35. Why I Don't Think TDD Is Essential
 Test Driven Development puts emphasis on unit over integration tests. The result can be lower quality featuring bugs that are baked into the product.
Test Driven Development puts emphasis on unit over integration tests. The result can be lower quality featuring bugs that are baked into the product.
36. xUnit: Managing Complex Test Parameters
 xUnit support many ways of parameterizing tests, however none of the existing documentation I could find covered the use case of re-using and mixing parameter datasets across different tests. This article shows how this can be done with xUnit in Visual Studio.
xUnit support many ways of parameterizing tests, however none of the existing documentation I could find covered the use case of re-using and mixing parameter datasets across different tests. This article shows how this can be done with xUnit in Visual Studio.
37. How To Do Unit Testing For Microservices
 The microservices approach of building applications is most suitable when we develop complex applications with diverse functionalities. Since microservices, unlike monolithic architecture, keeps each function independent of the other, it is the most followed technique in modern times for large applications.
The microservices approach of building applications is most suitable when we develop complex applications with diverse functionalities. Since microservices, unlike monolithic architecture, keeps each function independent of the other, it is the most followed technique in modern times for large applications.
38. Top Unit Testing Automation Frameworks for Selenium
 With the introduction of Selenium, automation testing has become an easy task. All you need to do is find an appropriate unit testing framework for Selenium.
With the introduction of Selenium, automation testing has become an easy task. All you need to do is find an appropriate unit testing framework for Selenium.
39. Unit Testing Made Easier With Pure Functions
 By getting used to unit tests, they can start to familiarize themselves with the codebase and make significant progress while facing no risk or stress.
By getting used to unit tests, they can start to familiarize themselves with the codebase and make significant progress while facing no risk or stress.
40. Beginners Guide to Get Started with Unit Testing in React Native
41. How to Release Great Software Using these 12 Types of Testing
 Get to know the different types of software testing methods and know the use cases, advantages, objectives to identify the best way to go about testing.
Get to know the different types of software testing methods and know the use cases, advantages, objectives to identify the best way to go about testing.
42. Best Practices to Write Unit Tests the Right Way
 In this article we will review some best practices and must-have libraries which will get your unit tests to the next level.
In this article we will review some best practices and must-have libraries which will get your unit tests to the next level.
43. Tips for Fixing Your Flaky Tests
 Learn how to get better consistency around your automated tests by both fixing your existing flaky tests, and writing better tests going forward!
Learn how to get better consistency around your automated tests by both fixing your existing flaky tests, and writing better tests going forward!
44. Test Scope and Isolation With Eunice
 There are often debates on the best way to describe what constitutes a "unit" when unit testing. Considering the scope of tests is an important part of code structure and complementary to how implementation is grouped.
There are often debates on the best way to describe what constitutes a "unit" when unit testing. Considering the scope of tests is an important part of code structure and complementary to how implementation is grouped.
45. API testing with Jest

46. The Ultimate C# .Net Testing Setup
 Basically, we need to ability to write test classes and methods and have the base infrastructure for them.
Basically, we need to ability to write test classes and methods and have the base infrastructure for them.
47. 6 Productivity Practices for New (and Old) Developers
Humans are complex creatures, with a wide variety of motivations for getting work done. Our motivation as developers is not purely extrinsic, or financial—sometimes it's for the joy of delivering code.
48. How to Spot N+1 SQL Query Problems Early for Laravel Projects
 My top favorite tools for spotting N+1 problems in database queries for Laravel projects.
My top favorite tools for spotting N+1 problems in database queries for Laravel projects.
49. Unit Testing Functionality: Testing setTimeout and setInterval
Recently at a client, a question came up about unit testing functionality that used setTimeout and setInterval.
50. React forms with Formik and Unit Testing with react-testing-library
 Setup
Setup
51. Unit Testing Is NOT The Same As Integration Testing
 Let's look at the differences between unit tests and integration tests and when you might prefer one or the other.
Let's look at the differences between unit tests and integration tests and when you might prefer one or the other.
52. How 'displayName' Helps In Testing React Using Styled Components
 How to get rid of the weird styled component names in test snapshots
How to get rid of the weird styled component names in test snapshots
53. So You Took Down Production - Now What?
 You're pushing to main, something you've done 100s of times before, and by the time you go to refresh your production environment, you notice something's wrong
You're pushing to main, something you've done 100s of times before, and by the time you go to refresh your production environment, you notice something's wrong
54. Use Comments to Unit Test Your Code [A How-To Guide]
 At Supabase we love writing as little code as possible, so we decided to combine our unit tests with same JSDoc comments that power VSCode's IntelliSense.
At Supabase we love writing as little code as possible, so we decided to combine our unit tests with same JSDoc comments that power VSCode's IntelliSense.
55. Software Testing 101: Regression Tests, Unit Tests, Integration Tests, Oh My!
 How do you prove that the software is working? How do you know you are not introducing harmful side effects? This is Software Testing 101!
How do you prove that the software is working? How do you know you are not introducing harmful side effects? This is Software Testing 101!
56. End-to-end Testing using React, Jest, and the TestProject JavaScript OpenSDK
 Who knows what the future will hold for the world of end-to-end test automation, but TestProject is certainly a platform worth keeping your eye on.
Who knows what the future will hold for the world of end-to-end test automation, but TestProject is certainly a platform worth keeping your eye on.
57. A Beginner's Guide to Unit Testing In JavaScript
 In this article, we are going to discuss a testing approach known as unit testing. What are unit tests? How should you implement them? and their benefits.
In this article, we are going to discuss a testing approach known as unit testing. What are unit tests? How should you implement them? and their benefits.
58. Quality Assurance in Scrum Projects
 Scrum is a set of rules for organizing a flexible workflow, which consists of a team approach, working in iterations, focusing on the goal of each iteration.
Scrum is a set of rules for organizing a flexible workflow, which consists of a team approach, working in iterations, focusing on the goal of each iteration.
59. Why Does it Often Take Nearly a Month to Ship a Few Lines of Code?
 Ever wondered why it takes nearly a month to ship out a few lines of code change to the star and reliable customers of your company? When the changes made are formally aligned with the product, marketing and application managers, what stops it from being shipped immediately? Why do managers quote timelines for a maintenance release that seems so "unrealistic" to you? These were the thoughts that were going through my mind during my first few months of writing production-quality code.
Ever wondered why it takes nearly a month to ship out a few lines of code change to the star and reliable customers of your company? When the changes made are formally aligned with the product, marketing and application managers, what stops it from being shipped immediately? Why do managers quote timelines for a maintenance release that seems so "unrealistic" to you? These were the thoughts that were going through my mind during my first few months of writing production-quality code.
60. Test-driven Development: How to Write Unit Tests
 Tests are a way to explicitly set expectations about code. You establish them to allow the machine to check whether your code meets the expectations.
Tests are a way to explicitly set expectations about code. You establish them to allow the machine to check whether your code meets the expectations.
61. Approaching Unit Testing in iOS Correctly
Why does my application get so buggy after each release?
62. A Step-By-Step Guide to Unit Testing for Express API
 A detailed step-by-step guide to writing unit tests for your node express API using mocha, chai, sinon, supertest, rewire, and nyc.
A detailed step-by-step guide to writing unit tests for your node express API using mocha, chai, sinon, supertest, rewire, and nyc.
63. Write Great Unit Tests by Writing Unit Tests that Fail
 Any test that has never failed has no value, and therefore, can be deleted. In order for any test to add value, it must have failed at least once.
Any test that has never failed has no value, and therefore, can be deleted. In order for any test to add value, it must have failed at least once.
64. Mocha+Chai: Writing a reusable Test Suite for an expressjs/mongoose API
 Here is a workable, reusable way to test an expressjs/mongoose application.
Here is a workable, reusable way to test an expressjs/mongoose application.
65. Learn How to Live with Immutable and Reliable Objects in Java
 Create immutable object java. The best way to create Immutable object. Reliable Objects Java
Create immutable object java. The best way to create Immutable object. Reliable Objects Java
66. Unit Testing Vs. Integration Testing In Android
 Android development has witnessed massive growth in all these years, and any developer who’s worth his salt will thoroughly test his products before launching them into the market. While having a conversation about testing in Android, we often hear two forms of tests doing the rounds — Unit Test and Integration Test.
Android development has witnessed massive growth in all these years, and any developer who’s worth his salt will thoroughly test his products before launching them into the market. While having a conversation about testing in Android, we often hear two forms of tests doing the rounds — Unit Test and Integration Test.
67. Dependency Injection to Make Your Code Testable [A How-To Guide]
Have you ever wanted to write unit tests for your code, but you’ve found that it’s difficult to do so? Often this is the result of not writing code with testing in mind. An easy way to solve this is through utilizing test-driven development, a development process in which you write your tests before your app code.
68. How to Learn Unit Testing in Java: JUnit and Mockito Courses
 Hello guys, today I am going to talk about JUnit and unit testing, one of the key skills for any software developer. You may already know that JUnit and Mockito are two of the most popular testing libraries for Java applications, and you will find them in almost every Java application classpath.
Hello guys, today I am going to talk about JUnit and unit testing, one of the key skills for any software developer. You may already know that JUnit and Mockito are two of the most popular testing libraries for Java applications, and you will find them in almost every Java application classpath.
69. How React Testing Library Can Improve Your Mental Health [Part 2]
 How React Testing Library Can Improve Your Mental Health Part 2
How React Testing Library Can Improve Your Mental Health Part 2
70. Enforcing Code Quality for Node.js
 Using Linting, Formatting, and Unit Testing with Code Coverage to Enforce Quality Standards
Using Linting, Formatting, and Unit Testing with Code Coverage to Enforce Quality Standards
71. 6 Lessons I Learned with Software Testing
For the last few of months I started digging into the software testing world. I really wanted to learn more about how to create more effective tests, refactor code with more confidence and feel safe about adding new features. However, I felt it is little difficult to dive right in this area, that in my point of view, is underestimated.
72. An Example of True Test Driven Development in Vue
 In true TDD, tests must fail, tests must pass, and the code must be refactored.
In true TDD, tests must fail, tests must pass, and the code must be refactored.
73. ClojureScript Macros: A (Not So) Long Journey [Part II]
The writing of Clojure/Script macro may seem as a wizard senior programming craft, but this article will show you that it's not the case. This is the second part of my journey to learn Clojure/Script macro and this article will deal with Clojure macro.
74. Everything You Ever Wanted To Know About Unit Testing
Unit testing is utilized to examine small segments of code that can be secluded logically in the system. Frameworks normally managed to do unit testing are JUnit, NUnit, JMockit, PHPUnit, or tools like TestComplete.
75. An Introduction to Test-Driven Development
 Test-driven development (TDD) is all the rage these days and has been a discussion topic for quite some time. If you are brand new to TDD, this article should serve as a good introduction to what TDD is, why it’s useful, what a typical TDD workflow looks like, and when to use TDD.
Test-driven development (TDD) is all the rage these days and has been a discussion topic for quite some time. If you are brand new to TDD, this article should serve as a good introduction to what TDD is, why it’s useful, what a typical TDD workflow looks like, and when to use TDD.
76. ClojureScript Macros: A (Not So) Long Journey [Part I]
 I’m learning the Clojure and ClojureScript craft and I must say, I enjoy it. This article explains what leads me on the track of learning Clojure/Script macro. This is the first part of my journey on this topic.
I’m learning the Clojure and ClojureScript craft and I must say, I enjoy it. This article explains what leads me on the track of learning Clojure/Script macro. This is the first part of my journey on this topic.
77. Testing Asynchronous JS Code: 2020 Edition
The text you are about to read describes an imaginary dialog between two programmers on their way to discover the orgastic pleasures of a library called asyncFn.
78. Tester Stories: How I Encountered and Fixed Flaky Tests
 Understand flaky tests with some real-world examples.
Understand flaky tests with some real-world examples.
79. The 100% Code Coverage Myth
 (Licensed from Adobe Stock Photo)
(Licensed from Adobe Stock Photo)
Thank you for checking out the 79 most read stories about Unit Testing on HackerNoon.
Visit the /Learn Repo to find the most read stories about any technology.
 
 