System.out.print() doesn't show anything in test methods

前端 未结 8 1301
春和景丽
春和景丽 2020-12-14 15:28

I\'m trying to print some data with System.out in my unit tests (@Test mehotds), but it is not showing anything. However, it works properly in

8条回答
  •  心在旅途
    2020-12-14 15:41

    The problem is the name of your test class. To be recognized in the test phase within the build (by the Maven surefire plugin), it must be named "*Test":

    Inclusions and Exclusions of Tests

提交回复
热议问题