1. A test optimization method comprising: determining an initial representative set of inputs corresponding to target program code to obtain an input set; selecting feature groups corresponding to the input set; and determining a set of optimal input combinations corresponding to the feature groups to obtain an optimal input combination set.