Unit testing is an important stage in software engineering.The quality of test results is related to the quality of the software.The traditional handwriting unit test is inefficiency,but the emergence of the automation unit test tool has greatly improved the efficiency of the unit test.However,the installing of desktop version of the automation unit test tool is complex and dynamically running relies on local environment.The automation unit test platform provides an automation unit test service in a B/S architecture without local environment.In recent years,the practice of continuous integration development is popular.If the automated unit test tool is integrated into the continuous integration system of B/S architecture,the unit test service will be more convenient to provide.In order to provide automated unit test services in the continuous integrated environment.Meeting the extensional needs and solve problems under unit test efficiency.This paper studies and implements an automation unit test platform in a continuous integrated environment.The automation unit test platform studied in this paper is based on Jenkins,which has excellent scalability.The peripheral management system connects the Jenkins server through the interface.Management system also integrates the personnel management,test task management,test result download and other functions into the web page for the convenience of developers.The Jenkins server is responsible for the automatic test function of the platform.When the remote code warehouse has code submission,the Jenkins server starts the test task,calls the docker container of the dynamic test tool and generates test results.In the continuous integration environment,a large number of historical test cases have been accumulated.However,the code versions of each test are not different.Therefore,the platform adopts the test case selection algorithm based on program slice to reduce the number of newly generated test cases.In the selection of automated unit testing tools,this paper selects the automated unit testing tools developed by the author’s laboratory,which automatically generates test cases by analyzing the source code,and dynamically performs statistical coverage,without writing unit tests.The test result files and execution files generated by the automated test platform are stored in HDFS,which increases the availability and reliability of the platform.This paper first introduces the research background and analyzing the current problem that unit test tool faced.And then extracts the functional requirements and performance requirements of the automation unit test platform.Then paper give an overall design and introduces the detailed design and Implementation.Finally,system test verifies the functionality that discussed in demand analysis stage. |