Monday, February 18, 2013

Re: How can i run system level tests using djangos testing framework

True, but as far as I can tell, Django's testing framework seems to revolve around apps, and you need to group your system-wide test somewhere anyway, might as well be in an app. It doesn't need to have much, just a blank models.py file, and a tests.py with your tests.

Alternatively, you could create a custom test runner and look for tests wherever you'd like: https://docs.djangoproject.com/en/dev/topics/testing/advanced/#topics-testing-test-runner

_Nik

On 2/18/2013 1:53 PM, calum mchaffie wrote:
I have thought about that, but would prefer not to if i can avoid it, seems alot of extras just for some tests

On Tuesday, February 19, 2013 10:51:24 AM UTC+13, Nikolas Stevenson-Molnar wrote:
How about creating a 'testing' app specifically for full-project tests?

_Nik

On 2/18/2013 1:48 PM, calum mchaffie wrote:
> I want to be able to run my system level integration tests using
> djangos LiveServerTestCase.
>
> It doesnt make sense to have the tests in the app as it uses more than
> just the app.
>
> So my problem is how do i get django to run the tests when they are in
> the project folder (not the app)?
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate