Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Unit testing is a must learn technology for an asp.net programmer?

Unit testing is a must learn technology for an asp.net programmer?

Scheduled Pinned Locked Moved ASP.NET
testingcsharpasp-netbeta-testingtools
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    popchecker
    wrote on last edited by
    #1

    I am comparatively new to the test driven development and unit testing. I spent last two weeks to learn the concept of these technologies. Following is my understanding about unit testing. Please correct me if I am wrong. 1. Unit test would be an over kill for small asp.net projects. 2. I believe testing how aspx pages rendering is an important fact. As far I know NUnit test is not capable for doing this. I know the free tool NUnitAsp but the development on this project is terminated. I also found some other tools like selenium. How is your opinion about it? Is it worth to learn NUnit test for asp.net? How about to implement Unit test in small asp.net applications? Thanks and regards, Poppy

    N 1 Reply Last reply
    0
    • P popchecker

      I am comparatively new to the test driven development and unit testing. I spent last two weeks to learn the concept of these technologies. Following is my understanding about unit testing. Please correct me if I am wrong. 1. Unit test would be an over kill for small asp.net projects. 2. I believe testing how aspx pages rendering is an important fact. As far I know NUnit test is not capable for doing this. I know the free tool NUnitAsp but the development on this project is terminated. I also found some other tools like selenium. How is your opinion about it? Is it worth to learn NUnit test for asp.net? How about to implement Unit test in small asp.net applications? Thanks and regards, Poppy

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      First of all, unit testing is not a technology. It's a practice.

      popchecker wrote:

      Unit test would be an over kill for small asp.net projects.

      I don't think so. Most of the projects start as small and evolve to a bigger one. In such cases unit testing helps you to catch errors when you move code around and add more code. When the application is small, number of unit tests also will be small. So I don't see anything wrong in having that.

      popchecker wrote:

      I believe testing how aspx pages rendering is an important fact

      I am afraid that is not unit testing. Usually you don't write unit tests for the presentation part. You need to split the things that needs testing from the UI and keep UI very thin. Patterns like MVC and MVP helps you to achieve this kind of design.

      popchecker wrote:

      I know the free tool NUnitAsp but the development on this project is terminated. I also found some other tools like selenium. How is your opinion about it?

      I haven't used it so far. But I have heard some good comments about selenium.

      popchecker wrote:

      Is it worth to learn NUnit test for asp.net?

      Yes.

      Best wishes, Navaneeth

      P 1 Reply Last reply
      0
      • N N a v a n e e t h

        First of all, unit testing is not a technology. It's a practice.

        popchecker wrote:

        Unit test would be an over kill for small asp.net projects.

        I don't think so. Most of the projects start as small and evolve to a bigger one. In such cases unit testing helps you to catch errors when you move code around and add more code. When the application is small, number of unit tests also will be small. So I don't see anything wrong in having that.

        popchecker wrote:

        I believe testing how aspx pages rendering is an important fact

        I am afraid that is not unit testing. Usually you don't write unit tests for the presentation part. You need to split the things that needs testing from the UI and keep UI very thin. Patterns like MVC and MVP helps you to achieve this kind of design.

        popchecker wrote:

        I know the free tool NUnitAsp but the development on this project is terminated. I also found some other tools like selenium. How is your opinion about it?

        I haven't used it so far. But I have heard some good comments about selenium.

        popchecker wrote:

        Is it worth to learn NUnit test for asp.net?

        Yes.

        Best wishes, Navaneeth

        P Offline
        P Offline
        popchecker
        wrote on last edited by
        #3

        Thanks for reply. Let me ask one more question. How can I test my presentation part? Can you please suggest me a method? Thanks and regards, Poppy

        N 1 Reply Last reply
        0
        • P popchecker

          Thanks for reply. Let me ask one more question. How can I test my presentation part? Can you please suggest me a method? Thanks and regards, Poppy

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          You have to use UI testing frameworks like QTP.

          Best wishes, Navaneeth

          P 1 Reply Last reply
          0
          • N N a v a n e e t h

            You have to use UI testing frameworks like QTP.

            Best wishes, Navaneeth

            P Offline
            P Offline
            popchecker
            wrote on last edited by
            #5

            Thanks Navaneeth :-D I am going to implement NUnit test in my next project. Sure I will come back with few more doubts. :thumbsup:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups