Categories: Uncategorized

How to estimate effort for unit testing?

Is that a right question to ask at all during effort estimation stage?

When taking workshop with software developers involved SCRUM methodology, I came across some of the following answers in relation with effort estimation vis-a-vis unit testing:

  • No task was created for unit tests and hence, no effort was estimated. Thus, we didn’t write any unit tests.
  • We had to deliver and we were running short of time; hence, we skipped unit testing?
  • There are effort estimation done for functional tests by QA engineers; Then, why unit tests?

Interestingly, some stakeholders on client end said about of software developers on offshore side not asking for tasks to be estimated for unit tests.

If you observe above, you would find “unit testing” seen as a separate set of actions then development. If seen this way, one will surely not be able to do justice with unit tests and the related Testability quality characteristic associated with it.

I see unit tests activities to be integral part of development. Once seen this way, I pay attention right from the requirements gathering stage to perform following:

  • Design for Testability
  • Test-driven development
  • Test-along development: This is an interesting term I came across while talking to one of the client stakeholder.

Once we see unit testing as integral part of software development, we adjust the schedule to deliver the module in appropriate time duration.

Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking.

View Comments

  • But, you never gave the answer to how to estimate the unit testing. Is there any formula that you use?

Share
Published by
Ajitesh Kumar

Recent Posts

Retrieval Augmented Generation (RAG) & LLM: Examples

Last updated: 25th Jan, 2025 Have you ever wondered how to seamlessly integrate the vast…

7 days ago

How to Setup MEAN App with LangChain.js

Hey there! As I venture into building agentic MEAN apps with LangChain.js, I wanted to…

2 weeks ago

Build AI Chatbots for SAAS Using LLMs, RAG, Multi-Agent Frameworks

Software-as-a-Service (SaaS) providers have long relied on traditional chatbot solutions like AWS Lex and Google…

2 weeks ago

Creating a RAG Application Using LangGraph: Example Code

Retrieval-Augmented Generation (RAG) is an innovative generative AI method that combines retrieval-based search with large…

3 weeks ago

Building a RAG Application with LangChain: Example Code

The combination of Retrieval-Augmented Generation (RAG) and powerful language models enables the development of sophisticated…

3 weeks ago

Building an OpenAI Chatbot with LangChain

Have you ever wondered how to use OpenAI APIs to create custom chatbots? With advancements…

3 weeks ago