A second batch of tests?

I am unsure if I understood you: Do you mean new tests, or running the same
tests again, with a different settings file?

If the first: write new tests: How should these tests be different from the 
existing tests?

If the second: Why not run the test with the settings which have 
string_if_invalid enabled in the first run?
What do you gain by running the tests twice?

Regards,
  Thomas Güttler


Am Donnerstag, 14. Januar 2016 18:33:13 UTC+1 schrieb James Schneider:
>
> On Jan 14, 2016 7:50 AM, "guettli" <guet...@thomas-guettler.de 
> <javascript:>> wrote:
> >
> > I would like to do this:
> >
> >   turn on "string_if_invalid" as a ‘development default’
> >
> > The django docs say:
> >
> >  While string_if_invalid can be a useful debugging tool, it is a bad 
> idea to turn it on as a ‘development default’.
> >
> > 
> https://docs.djangoproject.com/en/1.9/ref/templates/api/#how-invalid-variables-are-handled
> >
> > We were hit by some nasty bugs in production environment which were not 
> detected in our continous integration plattform.
> >
> > If "string_if_invalid" (or former TEMPLATE_STRING_IF_INVALID) would have 
> been activated,
> > we would have noticed the bug, and the broken code would have gone live.
> >
> > How do you handle this?
> >
>
> Why not have a second batch of tests that use a settings.py file with a 
> non default value for "string_if_invalid" that runs if the default settings 
> file passes? I've never dealt with a CI platform, but I'm assuming you can 
> do something like that.
>
> - James
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c8fe8229-cf00-4c7e-b6b5-0bc9daf5fc69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to