Ideally, unit tests must be isolated and decoupled from the rest of the system. In large frameworks like EBox we must make a effort to isolate the tests. Remember: if we had to run the tests as root or as the ebox user it will be a very bad smell about coupling.

Isolation issues:

  • EBox configuration
  • Sudo commands execution
  • EBox::Config file path
  • EBox logs
    • EBox exceptions (they write to logs)
  • Coding module bad practices