Mule - Code Coverage Reports

  • Falcon Scan does not execute munit tests or produce coverage reports. Instead, it solely imports pre-generated reports in json format.

How to generate coverage report

  1. Coverage report should be configured in JSON format for Falcon Scan to scan and upload the report. Refer Maven Configuration for Coverage

  2. Before scanning the project, make sure MUnit test cases are executed and coverage report is generated

Coverage report upload

  1. Falcon Scan parses the JSON coverage report from default path target/site/munit/coverage/munit-coverage.json. No additional configuration parameters are required to enable scanning of coverage reports

  2. On successful analysis, coverage report will be uploaded to server with following statistics -

    1. Overall coverage percentage - Click on the actions and select Code Coverage Report falcon overall code coverage

    2. File and flow level coverage percentage falcon file flow coverage

    3. Uncovered and covered lines falcon line coverage