The application provides a code testing method, a code testing device and a computer storage medium. The code testing method comprises the following steps: performing code
mutation testing on a to-be-tested code to generate a target
test case; mapping an initial compilation command maintained by a target test framework based on a
compiler command mapping rule to obtain a target compilation instruction; calling a corresponding
compiler based on the target compilation instruction to compile the to-be-tested code and the target
test case to obtain a target execution file; and executing the target execution file in a
virtual hardware model integrated in the target test framework and generating a
test report corresponding to the to-be-tested code based on an execution result. The code testing efficiency is improved by the code testing method.