Model Quality Metrics #106
AttilaMihaly
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Quality metrics are part of the standard SDLC process. Those are great to measure code quality but since they are not specifically focused on business logic they are very generic and technical. I think there are a lot of additional metrics we can calculate that are useful for measuring business logic quality specifically. Here are a few that came into my mind:
Specification Accuracy
Measures how accurate the types are in your model.
Logic Completeness
number of possible input values declared / number of handled input values
Domain Utilization
number of individual data-points declared in the input / number of input data-points used in the function
Range Utilization
number of possible output values declared / number of actual output values that the function returns
Test Quality
Branch Coverage
number of branches in the logic / number of branches covered by at least one test case
Test Completeness
number of possible input values declared / number of input values covered by at least one test case
Beta Was this translation helpful? Give feedback.
All reactions