# aner-tester **Repository Path**: liuhuanheng/aner-tester ## Basic Information - **Project Name**: aner-tester - **Description**: 这是一个测试springboot的api接口的插件,提供自动生成controller控制器对应的Test文件功能,封装MockMvc常用测试功能,根据接口信息自动生成测试数据和测试方法。 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2020-12-18 - **Last Updated**: 2024-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
aner-tester, a ControllerTest file and data generator.
#### 介绍 这是一个基于springboot下的api接口测试生成器,提供自动生成controller控制器对应的ControllerTest文件代码、封装MockMvc常用测试接口、自动生成接口测试数据和接口测试方法。 ### introduction this is a generator containing mockMvc test api and data based on springboot framework. #### 使用说明 1. 在resources添加一个application-anertester.yml配置文件,修改相内容,具体方法内容可见demo; 2. 新建一个包含main函数的对象,然后main函数中调用“new AnerTester().startTester();”,运行该主函数,ControllerTest和接口数据就自动生成。 3. 在src/main/test/java目录下查看生成的ControllerTest测试文件。 #### instruction 1. create an application-anertester.yml configuration file in the resources directory, refer to the usage of example in the project. 2. create a class containing main method, in which add “new AnerTester().start();” code,and run main method. 3. check the controllerTest file in the directory of src/main/test/java.