Jacoco report in command line

前端 未结 3 1026
终归单人心
终归单人心 2021-01-03 10:27

I have to write a .sh launching an UI application covered with Jacoco. On exit, a jacoco report must be generated.

I\'m not able to generate the jacoco.exec with thi

3条回答
  •  花落未央
    2021-01-03 11:10

    Usage of JaCoCo involves two steps - gathering of coverage information and generation of report. So nothing wrong with your command - it gathers coverage information into .exec file. After this you can generate report using Ant or Maven, or built your own report generator using JaCoCo APIs - JaCoCo does not yet provide a out-of-the-box command line interface for report generation, however there is an example of API usage for report generation.

    Update (2/8/2019)

    JaCoCo provides command line interface since version 0.8.0.

提交回复
热议问题