JUnit test report enrichment with JavaDoc

后端 未结 6 1520
日久生厌
日久生厌 2020-12-07 18:56

For a customer we need to generate detailed test reports for integration tests which not only show, that everything is green, but also what the test did. My colleagues and I

6条回答
  •  甜味超标
    2020-12-07 19:44

    Maybe it is worth taking a look on "executable specification" / BDD tools like FIT/FitNesse, Concordion, Cucumber, JBehave etc.

    With this practice you will have a possibility not only satisfy the customer's requirement formally, but you will be able do bring transparency onto a new level.

    Shortly speaking, all these tools allow you (or, better, customer) to define scenarios using natural language or tables, define binding of natural language constructs to real code, and run these scenarios and see if they succeed or fail. Actually you will have a "live" spec which shows what is already working as expected and what is not.

    See a good discussion on these tools: What are the differences between BDD frameworks for Java?

提交回复
热议问题