Solid Java unit test automation? (JUnit/Hamcrest/…)

后端 未结 4 567
忘掉有多难
忘掉有多难 2021-02-01 18:07

Intent

I am looking for the following:

  • A solid unit testing methodology
    1. What am I missing from my approach?
    2. What am I doing wro
4条回答
  •  抹茶落季
    2021-02-01 18:36

    Well, I will post 2 difference answers.

    1. As James Coplien stated unit test is worthless. I disagree with him on this issue, but may be you will find this helpful to consider to unit test less instead of searching for automatic solution.

    2. Consider to use Theories with DataPoints. I think this will minimize your problem significantly. Also, using mock can help you.

提交回复
热议问题