# aner-tester **Repository Path**: ludycool/aner-tester ## Basic Information - **Project Name**: aner-tester - **Description**: 这是一个测试springboot的api接口的插件,提供自动生成controller控制器对应的Test文件功能,封装MockMvc常用测试功能,根据接口信息自动生成测试数据和测试方法。 - **Primary Language**: Java - **License**: MIT - **Default Branch**: customized - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-01-28 - **Last Updated**: 2021-01-29 ## 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. #### 修改后版本,个性化定制操作,如有其他需要,可直接修改 controller.vm 模板文件 1.把 aner-tester-generator 项目复制到项目中 2.在项目中添加引用 ```