Dependencies analysis tool - updating regression test cases

后端 未结 7 2091
予麋鹿
予麋鹿 2021-02-02 13:20

Problem

Its quite a common problem I would like to think. Adding new code translates into regression - existing test cases become obsolete. Dependencie

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-02 14:03

    The best tool you can find for your problem is actually not a tool, but a practise. I strongly suggest you read about Test Driven Development (see Lasse Koskela's book), and Specification by Example (see Gojko Adzic's books, they're great).

    Using these practises will fundamentally change two things:

    1. You will have a test coverage close to 100%
    2. The tests will become first class citizens and will be the centre point of your code

    The reason why I find this relevant to your question is that your scenario hints for the exact opposite role of the tests: people will perform changes in code and they'll then think "oh, no...now I have to go figure out what I broke in those damn tests".

    From my experience, tests should not be overlooked or considered "lower grade code". And while my answer points to a methodology change that will only have visible results on the long run, it might help avoid the issue altogether in the future.

提交回复
热议问题