JaCoCo: exclude generated methods (using it with Lombok)

前端 未结 3 916
说谎
说谎 2021-02-05 03:08

I am using JaCoCo and it is considering methods generated by Lombok (generated in the bytecode, not trace of them in the source code). How can I configure JaCoCo to ignore them?

3条回答
  •  执念已碎
    2021-02-05 03:39

    Use the excludes tag provide by jacoco.

                jacoco-maven-plugin
                0.7.4.201502262128
                
                    
                        **/config/**
                        **/model/**
                        **/item/**
                    
                
    

提交回复
热议问题