Gradle difference between test and check

前端 未结 1 1630
没有蜡笔的小新
没有蜡笔的小新 2021-02-02 05:42

My build.gradle is as follows:

group \'groupName\'
version \'version\'

apply plugin: \'java\'
apply plugin: \'idea\'

sourceCompatibility = 1.8

re         


        
1条回答
  •  日久生厌
    2021-02-02 05:58

    The Gradle check task depends on the test task which means test is executed before check is run. The documentation states that check performs all verification tasks in the project, including test and also tasks plugins add to the project:

    If you for example add the checkstyle plugin to your project you can either run its tasks checkstyleMain and checkstyleTest individually or execute a full project verification using check. In this case the tasks test, checkstyleMain and checkstyleTest would be run.
    Whereas test always just executes your unit tests.

    0 讨论(0)
提交回复
热议问题