ASP.NET unit testing

Last post 07-01-2008 5:35 PM by liammclennan. 24 replies.

Sort Posts:

  • ASP.NET unit testing

    11-07-2002, 11:30 AM
    • Member
      122 point Member
    • dreamscape
    • Member since 07-12-2002, 6:28 AM
    • Woodbridge, VA
    • Posts 26
    • TrustedFriends-MVPs
    I'm looking for a good unit testing tool for ASP.NET. I've seen NUnitASP mentionedon the web but haven't seen much else for ASP.NET specifically.

    Has anyone had any experience with NUnitASP or some other unit testing tool for ASP.NET code?
    http://thequeue.net/blog/
    Microsoft MVP ASP.NET
  • Re: ASP.NET unit testing

    11-11-2002, 8:55 AM
    • Member
      115 point Member
    • Nobody
    • Member since 06-18-2002, 2:16 PM
    • Ireland
    • Posts 23
    What's the reason why You cannot use native test engine ?
    Regards.
  • Re: ASP.NET unit testing

    11-11-2002, 8:59 AM
    • Member
      122 point Member
    • dreamscape
    • Member since 07-12-2002, 6:28 AM
    • Woodbridge, VA
    • Posts 26
    • TrustedFriends-MVPs
    what native test engine?

    I'm looking for something that I can use in a team environment, something to do unit testing and integration testing.

    Unit testing I want my developers to be able to do. Integration testing I want my developers and my QA people to do.

    I'll read about this native engine if you shoot me a link.
    http://thequeue.net/blog/
    Microsoft MVP ASP.NET
  • Re: ASP.NET unit testing

    11-11-2002, 10:14 AM
    • Member
      527 point Member
    • dauger
    • Member since 06-17-2002, 10:09 AM
    • Saint Paul, MN
    • Posts 112
    I think nobody means the Microsoft Application Center Test, which comes with visual studio. This is a stress-test tool for web apps. Here is an article on the subject:
    http://www.asp.net/Forums/AddPost.aspx?tabindex=1&PostID=84161&mode=flat

    As far as unit testing goes, what are you defining as a "unit"? A single class? A single page? You might want to check Mercury Winrunner, but I don't know if that has .net support yet.
    You always have the option of creating your own testing tools. I have found that depending on what you need you may actually save time by writing your own test harness rather than learning the scripting languages etc... for a commercial test suite.
  • Re: ASP.NET unit testing

    11-11-2002, 10:18 AM
    • Member
      122 point Member
    • dreamscape
    • Member since 07-12-2002, 6:28 AM
    • Woodbridge, VA
    • Posts 26
    • TrustedFriends-MVPs
    a unit? The smallest peice of modular functionality. So not just a class, but methods in a class.

    I think I've looked at x-unity. I've seen a few others, but most of them seem to be .NET directed as opposed to ASP.NET.

    The stress test tool is not what I'm looking for in this discussion.
    http://thequeue.net/blog/
    Microsoft MVP ASP.NET
  • Re: ASP.NET unit testing

    11-11-2002, 10:27 AM
    • Member
      15 point Member
    • eichert12
    • Member since 06-18-2002, 8:06 AM
    • Posts 3
    You might want to check out NUnit. Its a port of the jUnit framework. In conjunction with NAnt as a build tool you have the capability to setup a pretty nice environment which allows continuous integration.

    Links:

    http://www.nunit.org
    http://www.junit.org
    http://martinfowler.com/articles/continuousIntegration.html

    -Steve Eichert


    http://steve.emxsoftware.com/
  • Re: ASP.NET unit testing

    11-11-2002, 11:50 AM
    • Participant
      1,530 point Participant
    • jimski3000
    • Member since 06-11-2002, 7:25 AM
    • London, England
    • Posts 304
    I've used NUnitAsp - it's pretty good (built on top of NUnit). As far as I know, it's the only unit-tester specifically for ASP.Net.

    Jim
  • Re: ASP.NET unit testing

    11-11-2002, 12:31 PM
    • Participant
      1,980 point Participant
    • ASPSmith
    • Member since 06-10-2002, 10:17 PM
    • Kent, OH, USA
    • Posts 218
    • ASPInsiders
      TrustedFriends-MVPs
    What's the main URL for NUnitAsp?

    Steve
    Steven A Smith
    AspAlliance.com - The #1 ASP.NET Community
    DevAdvice.com - Answers to Questions
  • Re: ASP.NET unit testing

    11-11-2002, 12:33 PM
    • Member
      122 point Member
    • dreamscape
    • Member since 07-12-2002, 6:28 AM
    • Woodbridge, VA
    • Posts 26
    • TrustedFriends-MVPs
    URL for NUnitASP: http://nunitasp.sourceforge.net
    http://thequeue.net/blog/
    Microsoft MVP ASP.NET
  • Re: ASP.NET unit testing

    11-12-2002, 5:06 PM
    • Member
      65 point Member
    • toddkennedy
    • Member since 06-18-2002, 9:24 AM
    • Canada
    • Posts 13
    From what I see of NUnit, it doesn't look like an improvement on ACT. What does it do that ACT can't do?
    http://forums.hiveminds.info
  • Re: ASP.NET unit testing

    11-13-2002, 6:07 AM
    • Member
      122 point Member
    • dreamscape
    • Member since 07-12-2002, 6:28 AM
    • Woodbridge, VA
    • Posts 26
    • TrustedFriends-MVPs
    I'm not sure if ACT does this exact thing. I know you can record a browser session and run a test against it. The only thing I've seen ACT used for was stress testing / performance metrics.

    NUnitAsp will allow me to keep adding smaller unit tests to the whole test process so we can test across the board as we check in code to make sure we don't break another area of the code.
    http://thequeue.net/blog/
    Microsoft MVP ASP.NET
  • Re: ASP.NET unit testing

    11-13-2002, 10:54 AM
    • Member
      65 point Member
    • toddkennedy
    • Member since 06-18-2002, 9:24 AM
    • Canada
    • Posts 13
    ACT records everything as VBScript. This means that you can modify it however you like. I can be easily modified to call dynamic test data.
    http://forums.hiveminds.info
  • Re: ASP.NET unit testing

    11-13-2002, 12:53 PM
    • Participant
      1,530 point Participant
    • jimski3000
    • Member since 06-11-2002, 7:25 AM
    • London, England
    • Posts 304
    Some of the advantages of a proper XUnit-testing tool are:

    -The cost (free).

    -Source code availability.

    -Ability to write tests in the same language as the code you're testing (no dropping to VBScript). This is *very* important.

    -Very low turn-around time between testing and coding.

    But the real point is that unit-testing is such an important activity for some people that the tools need to fit seamlessly into their development cycle. XUnit derivatives are designed to be unintrusive, simple and fast. I can't imagine something like ACT fitting the bill.

    And isn't ACT only available with VS.Net?


    Jim
  • Re: ASP.NET unit testing

    11-13-2002, 4:39 PM
    • Member
      65 point Member
    • toddkennedy
    • Member since 06-18-2002, 9:24 AM
    • Canada
    • Posts 13
    I'm setting up Nunit right now and the first thing it tells me is: "We assume you're using Visual Studio .NET and Internet Information Server."

    Will it work fine without the studio?
    http://forums.hiveminds.info
  • Re: ASP.NET unit testing

    11-13-2002, 4:41 PM
    • Member
      65 point Member
    • toddkennedy
    • Member since 06-18-2002, 9:24 AM
    • Canada
    • Posts 13
    Does it only work in C#? What about vb.net?
    http://forums.hiveminds.info
Page 1 of 2 (25 items) 1 2 Next >