Sunday, November 27, 2011

django testing. random test order with some 'dependency constraints'

I'd like to create some unit tests whch should be executed in random order.


However some tests could benefit from results of some predecessor tests.

Therefore they should be executed only after certain tests.

Did anybody try to implement such a test setup with Django's default
unit tests?

Are there any 'recomended' ways / hooks of changing the order of tests?
Do many test cases depend on a certain order of test??
If yes, then I had to know how to exclude these tests from shuffling.

Are there any recommendations of how to describe dependencies?

Are there any recommended ways of how to carry data between different
tests? (e.g. make them member of the same TestCase class)


Thanks a lot for some feedback / suggestions.


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

No comments:

Post a Comment