[Simulator] Running the Code Coverage Report Tool

To perform code coverage analysis on a MicroEJ application, one has to do the following

  • In the application launch configuration :
    • Set the application to run on simulator ( select the Execution > Execution > Execute on Simulator option
    • Enable the Configuration > Debug > Code Coverage > Activate code coverage analysis option
  • Create a MicroEJ Tool launch configuration
    • Set the Execution > Execution > Settings option to Code coverage report
    • Set the Configuration > Code Coverage > *.cc files folder to the application cc folder
    • Set the Configuration > Code Coverage > Classes filter to the appropriate values depending on your coverage needs
  • Run the application
    • The HTML report shall be generated in the application cc/html folder
1 Like