It recently happened quite often to me, that I thought "I must not forget to include this particular line of code into one of my unit tests.". I though it would be awesome if I could use some method to put a "flag" to the line and later run some coverage analysis to make sure this line was executed and ideally to make sure it was the correct test case. Of course there are ways to develop something like this myself, but I don't want to reinvent the wheel, so I tried to google for frameworks, that already support something like that. I did not find anything, but that might be caused by the fact, that I didn't know what to search for.
I had this experience in several languages (I got to switch languages for different projects) so I do not want to pin this question to one particular environment.
Does anyone know where to find something like this, or what term to search for?
Please do not:
- Tell me to write it myself
- Tell me how to write it myself
- Question weather it is useful
If nobody can tell me about a system that supports this feature, I will find a way to do it myself.
Aucun commentaire:
Enregistrer un commentaire