Software testing is an important means to ensure software quality.Mutation testing simulates various defects in soft-ware by implanting some errors to evaluate the test suite quality.By briefly introducing the basic principle of variant testing,while combining it with specific experiments to show the basic application of variant testing in unit testing,analyzing in detail why the surviving variants are killed,and pointing out the direction of further application of variant testing.