Difference between revisions of "Isolate from Framework Couplings"
From Zentyal Linux Small Business Server
Latest revision as of 15:14, 12 November 2013
Ideally, unit tests must be isolated and decoupled from the rest of the system. In large frameworks like Zentyal we must make a strong effort to isolate the tests from the applications and framework.
Remember: if we had to run the tests as root or as the Zentyal user that would indicate a very tight coupling between Zentyal and the unit tests, and that is a bad thing.
Isolation issues:
- Zentyal configuration
- sudo command execution
- eBox::Config file path
- Zentyal logs
- Zentyal exceptions (they write to logs)
- Coding module bad practices