I have some code that interacts with a CVS repository that is a frequent source of software defects, probably because it has no test coverage whatsoever.
The code would have test coverage if my tests could create a dummy CVS repository, interact with it, make assertions, and then discard the dummy CVS repository. This would all happen inside of the unit-test folder, rather than in one of the system folders. (This whole thing is incredibly easy in Git, and may actually be an argument in favor of migrating to Git.)
Has anyone done this kind of thing? Does anyone know how? Will I be forced to run my unit tests as root
?
Aucun commentaire:
Enregistrer un commentaire