jenkins the definitive guide
5.10.2.1. The Gradle plugin for Jenkins You can install the Gradle plugin in the usual way—just go to the Manage Plugins screen ...
dependencies{ testCompile "junit:junit:4.8.2" } uploadArchives { repositories.mavenDeployer { configuration = configurations.arc ...
Figure 5.52. Setting up a Gradle build job After adding the snippet above to your build file, your job console output should loo ...
You may also want to install the MSTest plugin^15 and the NUnit plugin^16 , to display your test results. Once you have installe ...
Now go to the Build section of your freestyle project and choose “Execute NAnt build” (see Figure 5.56, “A build step using NAnt ...
Figure 5.57. A build step using Rake You also need to configure Jenkins to report on the test and quality metrics results. You c ...
Figure 5.58. Publishing code quality metrics for Ruby and Rails 5.11. Conclusion In this chapter we have covered the basics of c ...
Chapter 6. Automated Testing 6.1. Introduction If you aren’t using automated tests with your Continuous Integration setup, you’r ...
business behavior. One useful approach in these situations is to write automated functional tests (“regression”) tests that simu ...
6.3. Configuring Test Reports in Jenkins Once your build generates test results, you need to configure your Jenkins build job to ...
Figure 6.2. Configuring Maven test reports in a freestyle project For Java projects, whether they are using JUnit or TestNG, Jen ...
Figure 6.4. Publishing xUnit test results 6.4. Displaying Test Results Once Jenkins knows where to find the test reports, it doe ...
Figure 6.5. Jenkins displays test result trends on the project home page If you click on the Latest Test Result link, Jenkins wi ...
This full view gives you both a good overview of the current state of your tests, and an indication of their history. The Age co ...
probably take a large proportion of the time. So this graph is a great way to see how well your tests are performing as well. Fi ...
Figure 6.9. Jenkins also lets you see how long your tests take to run Skipping some tests is perfectly legitimate in some circum ...
public void whenAUserLogsOnWithACorrectUsernameAndPasswordTheHomePageIsDisplayed(){..} Here, if the first test (serverStartedOk( ...
The behavior and configuration of all of these tools is similar. In this section, we will look at Cobertura. 6.6.1. Measuring Co ...
</formats> </configuration> </plugin> ... </plugins> <build> ... </project> This will genera ...
sense if you are also generating other code quality metrics and reports at the same time. If you want to do this using Maven 2, ...
«
4
5
6
7
8
9
10
11
12
13
»
Free download pdf