JADE Environment Development Ideas

What's new in the upcoming JADE release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED SECURITY. SMOOTHER INTEGRATION

The JADE 2022 release meets tomorrow’s business demands.


Start your update to JADE's latest release

Programmatic way to access Code block info on Methods.

To help further analyse our code base it would be very useful to be able to programatically access the number of code blocks in a method, currently we can only get this information by loading a CCD file into the Code coverage option in the IDE. This means if a method has no coverage from a unit test run you don't know the number of code blocks it has (according to the Jade). If you do have coverage you need to load and then extract as csv the information before being able to do any further analysis.

  • Peter Banyard
  • May 18 2021
  • Executing
  • Attach files
  • Peter Banyard commented
    August 10, 2021 12:35

    John


    If you take a look at the attached file you can get an idea of the sort of analysis we do on a monthly basis. I take the CCD files from the latest Unit Test Batch run and merge with all the methods that have changed during a set time period. Once combined this produces the file attached. So all methods that have coverage from the CCD files we can get the block info for, but methods that have no unit test coverage and therefore don't produce an entry in the CCD file have no block info. So to better analysis all the methods it would be very useful if we could get the number of code blocks in methods with no coverage this would give us a better idea of how much coverage we have with our unit tests.


    Cheers


    Peter

  • Admin
    John Richards commented
    August 03, 2021 21:30

    Hi Peter,

    It would help us if we knew what use you would make of the code block info, or how you might interpret it, in terms of your code analysis.


    Cheers John R.