Andrew Stopford's Weblog

poobah

News

Articles

Family

Old Blogs

Firepoll #2, why can't you unit test webforms?

The first firepoll has shown up some interesting things, as such I'd like to ask what prevents you from unit testing webforms? Is it that you have not considered it before or is the poor seperation of concerns/leaking abstraction the problem? Indeed if you do unit test webforms how are you doing that, implementing MVP\MVP, using Castle Igloo etc?

Comments

daniel said:

We use Watin + Nunit.  The main downside so far is that it doesn't work very well with Cruise Control, since CC runs as a service, and Watin by definition requires UI.

# March 12, 2007 10:54 AM

Ayende Rahien said:

There are damn _fragile_.

I am testing via WatiN and I can't get them to pass successfully all the time.

# March 12, 2007 3:29 PM

Dee said:

not cost effective.

use your validation for forms and trace for everything else and be done with it.

# March 12, 2007 4:07 PM

Eric Newton said:

When testing webforms, you're actually "functionally" testing, and not unit testing.

There's a big difference.

For instance build use cases, like "create a new Order" and "try to add order line items to an existing order with an orderdate before today" and so forth.

Unit testing is for testing the actual methods, like IsValidEmailAddress("eric@asdf.com")==true

# March 15, 2007 1:24 PM

http://e01.org said:

Tebe vosled rukoj i kami vni. Winslow Catina.

# April 18, 2007 6:55 PM

alan bunston said:

alan richard bunston is a convicted child molester

alan richard bunston is a convicted child molester

alan richard bunston is a convicted child molester

alan richard bunston is a convicted child molester

alan richard bunston is a convicted child molester

alan richard bunston is a convicted child molester

alan richard bunston is a convicted child molester

alan richard bunston is a convicted child molester

alan richard bunston is a convicted child molester

# May 19, 2007 12:22 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)