Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Although my instrumented application runs correctly, the coverage data file contains no information. What could be wrong?

0
Posted

Although my instrumented application runs correctly, the coverage data file contains no information. What could be wrong?

0

One cause for this is that you might be running the VM without specifying some required options. • Make sure that you are running the correct version of VM (Refer to Software Requirements in help documentation). • Make sure that the options Xdebug and Xnoagent are passed to the VM. • If you are using the classic VM, make sure that the option -XDjava.compiler=NONE is passed to the VM. • Check whether the option to enable coverage “XrunJCVRun:.” Is correctly passed to the VM. • On application startup, the coverage agent displays a “coverage enabled” message. Make sure that this message is displayed when you run your application. • Add verbose=true option to the JCVRun and check whether JCVRun displays a ‘coverage enabled’ message for all the classes for which coverage is enabled. • Check whether the following output is written to the DOS prompt when your application exits. *** Coverage data successfully written 26. I added source files to my JCover project, instrumented it and executed i

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123