In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Some time ago, I wanted to achieve the goal of continuous integration and continuous testing through Jenkins+testNG! Not only automatically trigger the test and send the results to the relevant personnel, but also track each test result and form a detailed report!
There are three main steps:
1. Write testNG test class and create testng.xml file; trigger test execution manually; make sure the code is correct!
2. Add the maven-surefire-plugin to the pom.xml file, and configure the testng.xml file manually executed into the plugin, as shown in the following figure (demo.xml in the figure)
org.apache.maven.plugins maven-surefire-plugin src/main/java/Demo.xml 2.4
3. You can configure each item in JENKINS
There are two configurations:
1) The system under test and the test code are under one project, i.e. one under/src/main/java and one under/src/test/java; then configure a job
2) The system under test and the test code are not under the same project, so each of the two projects is configured with a job. The job of the test project depends on the job of the system under test. Then, the trigger mechanism is configured under the job of the system under test to check SVN changes.
As shown below:
Configure post-build actions:
See plugin description for specific parameters; this plugin is responsible for reading testng execution results to generate the following test report:
Install the E-mail Notification plug-in and configure the mail template as shown below:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.