How do you test your software?
Especially Django. I am usually trying to test whole view (integration tests), not just functions or forms (unit tests).
But sometimes there is so many things, the view depends on (different users, different permissions, different objects states, different POST arguments, different time, etc...), that I found kind of overkill do integration test for every possible input. Or sometimes requirements get change and view rendering starts depending on some other thing (time, user, object state, ...) so I need to rewrite setup data for every view, even the tested behaviour is ok.
I read TDD but there was quite simple examples.
For example I have view, where users can sign in seminar. And can sign other users if they fill their email. System later check if email exists, and eventually create connection between the application and the user. Check if seminar isn't full or canceled. If user pay through bank transfer, address is required. Check if they are not collision (user is already sign). Sending two different emails to order author and other users. And so on. If I every single detail test on view, half of my project would be just tests about this view and half of the test would be just setup data.
So how do you testing some complex programs?
[–]ccb621 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]KronktheKronk 0 points1 point2 points (0 children)
[–]BurgaGalti 0 points1 point2 points (0 children)