We're creating unit tests for some legacy code, and in doing so we found a bug in one of our classes. It might be a while before we fix the bug. Do we
- create a unit test now which demonstrates the bug and fails, or
- wait until we fix the bug to create the unit test?
If we create the test now we'll have a failing test until we fix the bug, which seems ugly.
Aucun commentaire:
Enregistrer un commentaire