Code  Coverage diagnostics to measure Efficiency of Unit Testing
298
Views
4
Comments
New
Architecture & Governance 

Ae we all know In computer science, test coverage is a measure used to describe the degree to which the source code of a program is executed when a particular test suite runs. A program with high test coverage, measured as a percentage, has had more of its source code executed during testing, which suggests it has a lower chance of containing undetected software bugs compared to a program with low test coverage.


Our tool lacks the capability to measure code coverage of unit test cases written by tool. In enterprise environments, this can be considered as major lacking feature. This will be complicated task considering that though .net code generated can provide code coverage stats but this needs to be reverse tracked to find the visual object that has generated the code and then tag accordinly.

Have seen similar ideas in past. But don't see any considered yet. Hope this one is picked up.


Cheers

Changed the category to
Architecture Dashboard
Merged this idea with 'Unit test coverage report for Client or Server Actions in Reactive and Mobile Applications' (created on 18 Dec 2023 10:43:20 by Joshua Salema)

1. I need a detailed coverage report whether my unit tests are covering all the branches in my server/client side

ex : If i have 4 branches (if else conditions) in my logic and I do not write unit tests for two out of four branches then my coverage for that server/client action must be 50 %

2. I want to define a threshold for coverage and stop the code from deployment if it does not meet the coverage percentage (I want this to work like Travis CI)

I want this specifically for Reactive and Mobile Applications which helps maintains quality of code and run smooth regression tests before deployment. I have tried TDDFramework and BDDCLientsideFramework as per Outsystems recommendation but they do not enforce that I maintain unit tests. I can still proceed to deployment even if my unit tests fails or I do not write Unit tests

I want a coverage report like the one generated by Travis CI as attached. 


Any plans of this feature coming out in the near future ? This is one of the most important aspect when it comes to unit test coverage