I never saw Perrin's original message, so I'm faking it here.

On Thu, 6 Jul 2006, Perrin Harkins wrote:
> Hmm.  Better?  It's a less useful test, since it runs in a fake 
> environment and skips a lot of code.  It's not worthless, but it's no 
> replacement for running tests against a real server.  If you have things 
> like mod_rewrite rules, or want to test that your apache config is 
> right, or make sure your proxy is doing uploads and handling cookies 
> correctly, you really need a live server.

It *can* run in a fake environment and skip a lot of code, but by
setting an environment variable it can run against a real server and not
skip a lot of code.

The biggest gotcha to that approach that I can think of is url
rewriting, which presumably are only in your Apache config (or whatever
httpd you use).  The test 'server' won't have those rewriting rules;
even so, I can think of workarounds for it off the top of my head, so it
can't be *too* difficult.

All that said, I'm glad you brought these issues up, because having good
testing tools is so important to the development cycle, and I wouldn't
have thought of everything you mentioned.
 
On Thu, Jul 06, 2006 at 11:50:00AM -0500, Dave Rolsky wrote:
> If your goal is to unit test individual components I think it's definitely 
> better. If your goal is to do functional tests of the app as a whole it 
> clearly won't do that.

If your application is entirely Mason and your webserver does almost
nothing other than hand off to Mason, functional tests won't be any more
difficult than tests of individual components.  There are probably
reasonably complex apps that fit this profile.

hdp.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to