BT

InfoQ Homepage News ASP.NET MVC Testing Tips and Tricks

ASP.NET MVC Testing Tips and Tricks

Bookmarks

There are several components in an ASP.NET MVC 3 web app – models, controllers, route-handlers, views, html-helpers, client-side code etc. Most of these can be unit-tested, others need integration tests, and several good practices can help you keep your tests more maintainable and avoid making them brittle.

Here are some resources -

Do you have any other testing tips you want to share for testing ASP.NET MVC applications?

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • One Suggestion: SpecsFor.Mvc!

    by Matt Honeycutt /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    I'm obviously biased, but I think you left out one of the best tools for testing ASP.NET MVC applications: SpecsFor.Mvc! It enables you to write acceptance tests that perform complex browser automation using simple, unit-test like syntax. You can check it out at specsfor.com/SpecsForMvc and on my blog at trycatchfail.com/blog/post/Using-SpecsForMvc-In....

  • Re: One Suggestion: SpecsFor.Mvc!

    by Roopesh Shenoy /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Thanks for the suggestion Matt - definitely looking at it.

    One concern I have is how do you reuse these test-steps? One of the greatest features in BDD frameworks seems to be that you can reuse your test steps in multiple test cases making them more efficient. Look here for instance - nbehave.codeplex.com/wikipage?title=Using%20NBe....

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.