Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8268433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:53:12+00:00 2026-06-08T05:53:12+00:00

I had a discussion about the value of Unit testing here: Why should I

  • 0

I had a discussion about the value of Unit testing here:

Why should I bother with unit testing if I can just use integration tests?

but what I think I could infer from that is that Unit testing is good for discreet logic methods, but when data is being manipulated, you need to fall back onto integration tests.

The issue I have is in real world LOB applications, 99% of what they do is manipulate data, so does that mean only 1% of the typical application lends itself to Unit testing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T05:53:14+00:00Added an answer on June 8, 2026 at 5:53 am

    I would still use a unit test when data is involved. For example, when I test my response handlers in a webapp, I don’t want to have to fire an actual ajax request to test my handler. Instead, I put some example json in a string, then pass it to my handler.

    If I’m writing an application that reads data from a file, my data processing methods will be completely separate from the code that actually deserializes the file. So in this case, again, I would can some real-world data, and pass it to the data processing methods under test.

    You will see that using unit tests also informs the design of your code. In these examples, the methods/classes that do things with the data are completely separate (i.e. decoupled) from the way I am getting the data.

    As an note, I would probably throw some integration/functional tests in there as well for good measure, but I completely disagree with the notion that unit tests are only applicable 1% of the time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just had a discussion at work about the merits of using PostgreSQL over MySQL
I've just had a discussion with a developer about naming classes in C#. My
I am pretty sure about my answer but today had a discussion with my
We've had the discussion at work a few times about when to use a
I just had a discussion today with some coworkers about python's db-api fetchone vs
We've just had a discussion with college about is the following style acceptable for
i had a discussion with a coworker about the architecture of a program i'm
I recently had a discussion with a colleague about serialization of byte data over
I've had a discussion with a colleague about Linq to SQL. I am still
Without getting into a discussion about whether the business logic should be in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.