This question already has an answer here:
- Where do the Python unit tests go? 15 answers
So, I'm currently working on a large piece of code, and I'm currently working on converting it to a package. However, in my reading, it occurred to me that I should probably implement tests into my code, partly for organisation, and partly to make everything easier to mange. However, my problem is that I'm not sure where I should put tests. Should I put them in the main code, or should I create seperate test files. If anybody could tell me what the generally accepted technique for this is, and possibly provide some examples.
Many thanks, Ennis Massey
Aucun commentaire:
Enregistrer un commentaire