英文:
How to ignore test coverage from data model and dto from Java spring boot project
问题
如何忽略所有模型文件和DTO文件的测试覆盖率?我在项目中使用JUnit编写单元测试。所有方法和类都已覆盖,除了模型和DTO文件。每个类的覆盖率都非常高,但项目的覆盖率稍低,因为所有模型和DTO文件。如何忽略它们以提高测试覆盖率?
英文:
How can I ignore all model files and dto files from test coverage ? I use junit to write unit test in my project. All methods and classes has been coverage except model and dto files. The coverage of each class is very high but the project is low litter bit because all model and dto file. How can I ignore them to set the test coverage is higher ?
答案1
得分: 2
以下是要翻译的内容:
检查这些参考资料,显示了如何在jacoco
插件中设置排除项。
英文:
Check these references, shows how you need to set your exclusions in jacoco
plugin
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论