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

  • Home
  • SEARCH
  • 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 61993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:24:22+00:00 2026-05-10T18:24:22+00:00

My current position is this: if I thoroughly test my ASP.NET applications using web

  • 0

My current position is this: if I thoroughly test my ASP.NET applications using web tests (in my case via the VS.NET’08 test tools and WatiN, maybe) with code coverage and a broad spectrum of data, I should have no need to write individual unit tests, because my code will be tested in conjunction with the UI through all layers. Code coverage will ensure I’m hitting every functional piece of code (or reveal unused code) and I can provide data that will cover all reasonably expected conditions.

However, if you have a different opinion, I’d like to know:

  1. What additional benefit does unit testing give that justifies the effort to include it in a project (keep in mind, I’m doing the web tests anyway, so in many cases, the unit tests would be covering code that web tests already cover).

  2. Can you explain your reasons in detail with concete examples? Too often I see responses like ‘that’s not what it’s meant for’ or ‘it promotes higher quality’ – which really doesn’t address the practical question I have to face, which is, how can I justify – with tangible results – spending more time 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. 2026-05-10T18:24:23+00:00Added an answer on May 10, 2026 at 6:24 pm

    Code coverage will ensure I’m hitting every functional piece of code

    "Hit" does not mean "Testing"

    The problem with only doing web-testing is that it only ensures that you hit the code, and that it appears to be correct at a high-level.

    Just because you loaded the page, and it didn’t crash, doesn’t mean that it actually works correctly. Here are some things I’ve encountered where ‘web tests’ covered 100% of the code, yet completely missed some very serious bugs which unit testing would not have.

    1. The page loaded correctly from a cache, but the actual database was broken
    2. The page loaded every item from the database, but only displayed the first one – it appeared to be fine even though it failed completely in production because it took too long
    3. The page displayed a valid-looking number, which was actually wrong, but it wasn’t picked up because 1000000 is easy to mistake for 100000
    4. The page displayed a valid number by coincidence – 10×50 is the same as 25×20, but one is WRONG
    5. The page was supposed to add a log entry to the database, but that’s not visible to the user so it wasn’t seen.
    6. Authentication was bypassed to make the web-tests actually work, so we missed a glaring bug in the authentication code.

    It is easy to come up with hundreds more examples of things like this.

    You need both unit tests to make sure that your code actually does what it is supposed to do at a low level, and then functional/integration (which you’re calling web) tests on top of those, to prove that it actually works when all those small unit-tested-pieces are chained together.

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

Sidebar

Ask A Question

Stats

  • Questions 186k
  • Answers 186k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It is the same regardless of which assembly the classes… May 12, 2026 at 5:11 pm
  • Editorial Team
    Editorial Team added an answer Each solution has its pros and cons. Storing files in… May 12, 2026 at 5:11 pm
  • Editorial Team
    Editorial Team added an answer Here's the day of the week URL: http://chart.apis.google.com/chart?cht=bvs&chs=500x300&chd=t:200,50,300,145,0,976&chds=0,1000&chm=tMonday,000000,0,0,10|tTuesday,000000,0,1,10|tWednesday,000000,0,2,10|tThursday,000000,0,3,10|tFriday,000000,0,4,10|tSaturday,000000,0,5,10 cht is… May 12, 2026 at 5:11 pm

Related Questions

What happens is whenever i upload media onto my site; everyone will get a
I have put some aliases in my .bashrc to open a group of project
I know this would be easy with position:fixed, but unfortanately I'm stuck with supporting
I am using Java NIO for my socket connections, and my protocol is text

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.