Unit tests,Ā sometimes referred to asĀ micro tests,Ā are used to verify if each of the smaller pieces/units(in most cases, functions) of a software works as expected to give us the confidence that the whole software works too.
Basically, you write code to check if the code you wrote earlier works fine! š¤Ŗ
There are mixed responses to whether orĀ notĀ unit testing is an ideal approach. But, one thing is clear. You must be aware of unit testing and its scope in testing.
There are mixed responses to whether or not unit testing is an ideal approach. But, one thing is clear. You must be aware of unit testing and its scope in testing.
So, letās dive in!
Table Of Contents
What, how, itās scope..
You Still Donāt Know How To Do Unit Testing(And Your Secret Is Safe With Me)
Erik Dietrich on what unit testing is, what it isnāt, a dead simple unit test and some best practises.
Your Guide To Different Unit Testing Techniques : Unit Testing, TDD, BDD
What is it with all the āDDā ā ending acronyms? Have you ever wondered about the differences between unit testing and TDD? Or TDD and Test-First?
Whatās The Scope Of A Unit Test?
The scope of a unit test should be the smallest unit that still adds value. But, that may vary depending on the programming language youāre using.
š”Ā How Jeff Atwood puts it ā I Pity The Fool Who Doesnāt Write Unit Tests
Is QA needed after all?
Why Do You Need to Unit Test If You Have A QA Team?
Howās a QA team related to the unit testing process?
Is QA Necessary, Or Should Developers Do Their Own Testing?
The current trend among software development teams is to move away from QA-based testing in favor of developer-based testing. Which way should your team go?
A Testerās Guide To Unit Testing
It is important to test as close to the code as possible by playing in the unit test space, because this is where the majority of testing efforts need to be focused!
Tester-Driven Unit Testing : Taking An Active Role
āBecoming involved in unit and integration testing gives testers a great incentive to further enhance their development skills.ā ā Anastasios Daskalopoulos.
š”Ā Abhijeet Vaikar ā Unit Testing from a testerās perspective
More for testers..
Unit Testing Guidelines What To Test And What Not
Find guidelines regarding unit testing ā what to be unit tested or not, to what extent and so on.
Mutation Testing : Automate The Search For Imperfect Tests
Henry Cole shares how you can locate incorrect and incomplete unit tests with pitest.
Unit Testing And Development : Build Tests Before You Code
āTaking a unit testing first approach means that you start with a strong foundation on which to build and a means to validate it.ā An experience shared by Bluefruit Software.
š”Ā A card trick about unit tests
Misconceptions
TDD Is Not About Unit Tests
Explains why writing unit tests doesnāt mean that you are really doing TDD.
Unit Tests Donāt Find Bugs : The Death Of QA
Shannon Behrens shares his lesson he learnt painfully when working with unit tests.
Why unit testing isnāt enough! š
Coverage & quality
Why I Set My Unit Test Coverage Threshold To 100%
Francesco BorzƬ on how he uses code coverage as a tool, not as a goal.
100 Percent Unit Test Coverage Is Not Enough
Why do we need testers when our code is 100 percent covered by unit tests run by developers?
Experiences
On The Effectiveness Of Unit Test Automation At Microsoft
Effectiveness of unit testing ā a case study proof from Microsoft.
Goto Fail, Heartbleed, And Unit Testing Culture
Unit testing wasnāt a widespread practice at Google in its early years. Hereās how a group of volunteers(Testing Grouplet) helped drive the adoption of unit testing, persuading developers of the value of unit testing.
š”Ā Are really great programmers known to use unit testing?
Automation
Is JUnit Only For Unit Testing?
āWould you recommend learning āJava for Testersā to software testers who would rather not be involved in āunit testingā but rather involved in system and UAT?ā ā Alan Richardson answers.
UI Unit Testing
āThereās such a thing as UI unit testing, and Iām really excited about it!ā ā Kristin Jackovany
NUnit vs. XUnit vs. MSTest
Comparing the three major C# Unit testing frameworks & a demonstration using remote Selenium Grid.
Unit Testing Angular Apps
A step by step guide for writing simple unit tests in Angular.
A Beginnerās Guide To Unit Testing With Jest
For Javascript, Jest is one of the most widely used testing frameworks. Hereās a guide if you are looking to get started in writing Jest tests.
Test Your Spring Boot Applications With JUnit 5
Learn how to use JUnit 5 to write Java-based unit and integration tests for your Spring Boot apps.
How To Unit Test Your Database
Why unit test your database, how and some tools to check.
Understanding Unit Tests For Android In 2021
Understanding and making unit & instrumented tests.
Is your QA team involved in unit testingā
Make sure toĀ subscribe to our newsletterĀ tto continue to receive our weekly dose of testing vitamins! Read the previous editionsĀ here.
Until next, see ya!
With š,
Team Testsigma