On 14 Giu, 16:12, "Christopher Schnell" <ty...@mda.ch> wrote:
> As I am writing lots of functional tests these days, I was wondering if one
> should test the standard validators of a form.
>
> Let's say, we have a "change Password" form. This simple form with three
> fields would require lots of tests, for example
>
> .         Is the current password correct ?
>
> .         Is the new passwort long enough
>
> .         Is the new password entered twice
>
> .         .
>
> Now all these "tests" are implemented with standard validators. Would it be
> just lazy not to test these cases?
>
> How many tests do you write for such things?

I think you should test them.
You are not unit-testing validators, you are testing if your
application is running fine.
What if in 2 months someone accidentally remove a validator? If you
test it, you're done. If not, you can get trouble.

cheers
Massimiliano

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to