The invention discloses an increment testing method and device, a storage medium and
electronic equipment, and the method comprises the steps: constructing a
dependency graph for describing the dependency relationship between
software components in a
software system according to
software system data, and carrying out the
continuous integration of the software components on the basis of a code change set corresponding to a current
continuous integration task; a minimum candidate influence range is determined on the
dependency graph, a candidate
test set is delineated, tests in the candidate
test set are ranked according to the sequence of risk scores of all the tests from high to low, a target candidate
test set is obtained, all the tests are processed through a greedy
approximation algorithm, and a target candidate test set is selected under the constraint of resource budget; and the minimum and
optimal test set of
software system defects is found to the maximum extent. According to the method, the minimum candidate influence range is determined on the
dependency graph based on the code change set, the greedy
approximation algorithm is combined, intelligent and accurate selection of the test set under the resource budget constraint is achieved, it can be guaranteed that the defect
detection rate is not reduced, and the
continuous integration process efficiency can be improved to the maximum extent.