Pitest can't detect class of test

后端 未结 5 797
星月不相逢
星月不相逢 2020-12-22 08:05

i have problem with my configuration of maven and pitest.

Pitest generation mutation is ok but he can\'t see my class of test ..

if you have any solution :D

5条回答
  •  半阙折子戏
    2020-12-22 08:25

    It was not working as we migrated from Junit4 to Junit5. There is no support to Junit5 directly. The solution is to use the plugin from pitest for Junit5 Refer https://github.com/pitest/pitest-junit5-plugin

    plugins {
        id 'java'
        id 'info.solidsoft.pitest' version '1.5.1'
    }
    
    pitest {
        //adds dependency to org.pitest:pitest-junit5-plugin and sets "testPlugin" to "junit5"
        junit5PluginVersion = '0.12'
        // ...
    }
    

提交回复
热议问题