Description: In a unit test of software testing, you need to find test data (function parameter values) that satisfy a certain coverage, such as branching coverage, to determine whether the measured function is buggy. The source program USES the global optimization feature of genetic algorithm to realize the automatic generation of test data without manual input parameter value. The test function in the program USES trigonometric functions. The source code USES c ++ to realize GA's optimization process, and annotate the necessary comments, and the results can be solved very quickly.
To Search:
File list (Check if you may need any files):