12-05-2023 дата публикации
Номер: CN116107908A
Принадлежит:
The invention discloses a unit test code generation method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: in response to a unit test code generation request initiated by a user, determining a unit test object indicated by the generation request, and obtaining a data type of a test parameter corresponding to the unit test object; receiving parameter configuration information input by a user on the unit test configuration page, and configuring unit test parameters corresponding to unit test according to the parameter configuration information, the unit test object and the data type; and performing parameter filling and template rendering on the unit test template according to the unit test parameters to obtain a program structure interface object, performing analysis processing on the program structure interface object according to a program structure interface technology to obtain a Java object corresponding ...
Подробнее