Method and apparatus for the determination of a quality assessment of a software code with determination of the assessment coverage
AssigneeSiemens Aktiengesellschaft
InventorsChristian Körner, Matthias Saft
Life of this patent
Estimating the term…
Abstract
In a method for determining a quality assessment of a software code, the coverage is concomitantly calculated when determining the assessment. In order to increase the coverage, additional measurement results and assessments may be taken into account. Following changes to the software base, it is determined which of the additional measurements and assessment results should be renewed in order to provide or ensure the defined coverage.
Claims10
A method for determining a quality assessment of a software code and the assessment coverage, comprising:
- performing a static code analysis of the software code with the aid of predetermined rule and/or metric definitions and outputting identified rule infringements and object dimensions, which include results of the metrics for software objects;
- assessing the identified rule infringements and object dimensions based on predetermined assessment functions and outputting assessed rule infringements;
- aggregating the assessed rule infringements based on a predetermined quality aspect hierarchy and outputting a quality-aspect-related quality assessment of the software code;
- determining a quality-aspect-related assessment coverage factor based on a predetermined aggregation function and normalization of the identified quality-aspect-related quality assessment to the identified assessment coverage factor and outputting an assessment coverage of the quality-aspect-related quality assessment;
- identifying a subset of software code objects that have changed in comparison with software code objects already previously determined in the quality assessment;
- only for the identified subset of changed software code objects, determining quality-assessment tasks to be performed manually for the identified subset of changed software code objects, based on the assessment coverage of the quality-aspect-related quality assessment;
- and
- outputting an updated assessment coverage taking into account the assessment effort for the determined quality-assessment tasks.
A system for determining a quality assessment of a software code and the assessment coverage, comprising:
- a processor, and
- a non-transitory, computer readable memory comprising instructions programmed to:
- perform a static code analysis of the software code with the aid of predetermined rule and/or metric definitions and outputting identified rule infringements and object dimensions, which include results of the metrics for software objects;
- assess the identified rule infringements and object dimensions based on predetermined assessment functions and outputting assessed rule infringements;
- aggregate the assessed rule infringements based on a predetermined quality aspect hierarchy and outputting a quality-aspect-related quality assessment of the software code;
- identify a subset of software code objects that have changed in comparison with software code objects already previously determined in the quality assessment;
- only for the identified subset of changed software code objects, determining quality-assessment tasks to be performed manually for the identified subset of changed software code objects, based on the assessment coverage of the quality-aspect-related quality assessment;
- and
- output an updated assessment coverage taking into account the assessment effort for the determined quality-assessment tasks.
Dependencies are inferred from the claim text.