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 3452988
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:19:20+00:00 2026-05-18T09:19:20+00:00

I am new to unit testing. I want to know to what level do

  • 0

I am new to unit testing. I want to know to what level do I need to do unit testing. I mainly work on web applications. I am currently working through an MVC book and they showed a couple of unit tests for grid paging, and populating a menu control. Does one have to test business object properties, methods, data layer, stored procedures, etc? I don’t want to look paranoid and test everything. If it is best practices then I will do it.

For example, if a first name property is supposed to be 50 characters long, and may contain only alpha characters then do I need to test both?

I am also using the Yahoo User Interface library, do I need to test this as well?

What UI unit testing tools are available? I have heard that there are frameworks that allow you to mock a whole even if it is not there and then you can test the page this way? What frameworks for UI testing are available?

I would like to hear as much opinions as possible? Any suggested books for beginners with many samples would be appreciated.

Thanks

  • 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-05-18T09:19:21+00:00Added an answer on May 18, 2026 at 9:19 am

    As well as agreeing with the other answers here I’ll also add a pragmatic point that I’ve found extremely useful.

    When learning to write tests and getting used to the testing paradigm it’s often hard to know where to begin and what to test first. Testing everything is very much an ideal that can be acheived however there’s a pragmatic aspect to how much you can do right away.

    Given that you’re working on a web project, one thing I’ve found very helpful is to start testing code that requires a lot of effort to test in the usual way.

    An example of this that I have from a recent project is integrating some blogging mechanisms into our site based on a feed from blogger. In order to test my code I would have to build the blog project, then build the web project that references the blog project (which takes about 3 minutes in Visual Studio), then navigate to the page in question (waiting for the code to go through it’s sequence of events upon first run after build) and then go about testing the actual thing I’m interested in.

    To make this process a lot easier you can begin writing tests for these kinds of scenarios. I’m a fan of TDD and testing in general and I’ve found that this kind of approach really gives the developer a more grounded idea of how and why testing can be useful. You really get to see a benefit right away by reducing the amount of time and steps you have in order to test some functionality. Managers can also highly appreciate this. (It’s a bit less fluffy than some of the more idealistic concepts and banter surrounding testing).

    This approach also gets you into the fun aspect of writing tests. As with anything, if you start off by finding out how you can enjoy the process, you’re more likely to continue doing it.

    I’ve worked with many an evangelist who snubbed out any fun or interest a new developer might have found through testing and made the whole process very religious. Make testing fun and you’re more likely to want to test more of your code.

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

Sidebar

Related Questions

I am new to unit testing, and would like to know how you would
I'm only new to Unit Testing and ASP.NET MVC. I've been trying to get
I'm just getting going with ASP.NET MVC and I'm also new to unit testing
I am new to unit testing and I want to write some tests to
I'm new with unit testing in visual studio and I want to load a
I am new to unit testing. I have a web application using asp.net mvc3
I'm new to unit testing and NUit in particular. I'm just typing some examples
I am new to Unit Testing and think I might have dug myself into
I'm still new to Unit testing, and specifically PHPUnit as the testing framework. Suppose
I'm new to Unit Testing, and I'm only getting into the routine of building

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.