mardi 24 mars 2015

How to write tests for function that depends on a config file?


I have a function that uses information from a config file. How do I test the function? Ideally, I'd want to inject my own version of the config file and test from there, but I'm not using dependency injection.





Aucun commentaire:

Enregistrer un commentaire