JUnit @Ignore usefulness?

后端 未结 6 1516
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 11:47

In JUnit you can use @Ignore before methods to tell the test runner to automatically skip those tests. From what I can gather, this is really only a convenient way

6条回答
  •  清歌不尽
    2021-02-05 12:24

    @Ignored tests are more maintainable (and maintained) than commented-out ones. They are subject to compiler errors as things evolve, structured searching via IDE's, and IDE-assisted refactoring.

提交回复
热议问题