A method for testing a code, the method comprising: determining , in response to receiving a code submission request of a user, a code submitted by the user; performing integration testing on the code, and performing at least one preset test task; acquiring error information of the at least one preset test task, wherein the error information is outputted when the code fails to perform a test task; generating , in response to determining that the error information meets a preset condition, warning information based on the error information, wherein the preset condition includes: occurrence time of an error corresponding to the error information is within a preset period, an error type of the error belongs to a preset type, the code corresponding to the error is an abnormal code; and outputting the warning information, wherein the method further comprises: determining , for each test task indicated by the error information, a number of executions of the test task; determining , in response to determining that the number of executions of the test task is 1, an error type of an error in the test task and a number of errors corresponding to each error type; determining , in response to determining that the error type is a preset type and the number of errors corresponding to the preset type is less than a second preset threshold, that the error information meets the preset condition; and determining, in response to determining that the number of executions of the test task is greater than or equal to 2, that the error information meets the preset condition. determining , in response to receiving a code submission request of a user, a code submitted by the user; performing integration testing on the code, and performing at least one preset test task; acquiring error information of the at least one preset test task, wherein the error information is outputted when the code fails to perform a test task; generating , in response to determining that the error information meets a preset condition, warning information based on the error information, wherein the preset condition includes: occurrence time of an error corresponding to the error information is within a preset period, an error type of the error belongs to a preset type, the code corresponding to the error is an abnormal code; and outputting the warning information, wherein the method further comprises: determining , for each test task indicated by the error information, a number of executions of the test task; determining , in response to determining that the number of executions of the test task is 1, an error type of an error in the test task and a number of errors corresponding to each error type; determining , in response to determining that the error type is a preset type and the number of errors corresponding to the preset type is less than a second preset threshold, that the error information meets the preset condition; and determining, in response to determining that the number of executions of the test task is greater than or equal to 2, that the error information meets the preset condition. determining , for each test task indicated by the error information, a number of executions of the test task; determining , in response to determining that the number of executions of the test task is 1, an error type of an error in the test task and a number of errors corresponding to each error type; determining , in response to determining that the error type is a preset type and the number of errors corresponding to the preset type is less than a second preset threshold, that the error information meets the preset condition; and determining, in response to determining that the number of executions of the test task is greater than or equal to 2, that the error information meets the preset condition. <EOS>