I would like to know what you will offer as the best way for aspect-oriented unit test applications (well, maybe this is not the best name, but this is the best I could come up with :-)), for example, logging or security?
These things seem to be present in the application, so how to test them correctly?
eg. let's say that I am writing a Cherrypy web server in Python. I can use the decorator to check if the registered user has access rights to this page. But then I will need to write a test for each page to see if it works oK (or more like I didn’t forget to check perms for this page).
Perhaps this can be (maybe) (with emphasis on) be tolerant if logging and / or security were implemented during the "normal business implementation" web server. However, security and logging are usually usually added to the application as a follow-up (or maybe this is just my experience, they usually give me a server, and then I am asked to implement a security model :-)).
Any thoughts on this are very welcome. I currently "solved" this question, well, without testing it at all. Thanks.
source share