List of Listings

 

Chapter 1. Understanding continuous integration

Listing 1.1. Script for the miniCI demo system

Chapter 3. Automating the build process

Listing 3.1. NAnt build script to clean and compile a Windows application

Listing 3.2. Simple MSBuild script

Listing 3.3. Extending the build script

Listing 3.4. Build script using MSBuild Community Tasks

Listing 3.5. Visual Studio project file, which is an MSBuild script

Listing 3.6. MSBuild task to read the assembly version from AssemblyInfo file

Listing 3.7. Project versioning with Subversion and a custom MSBuild task

Chapter 4. Choosing the right CI server

Listing 4.1. Project configuration in CCNet

Listing 4.2. Triggering one build with another project build

Chapter 5. Continuous feedback

Listing 5.1. A sample CCNet configuration file

Listing 5.2. Email publisher in CCNet

Listing 5.3. Sample TeamCity build script

Listing 5.4. Sniffing around the last broken build in TFS 2010

Listing 5.5. Using an LED message board to notify you about a broken build

Chapter 6. Unit testing continuously integrated code

Listing 6.1. A simple finance mathematical library

Listing 6.2. A simple unit test for the rate calculation

Listing 6.3. MSBuild script running the NUnit tests

Listing 6.4. Extending CCNet dashboard.config with PartCover report transformations

Listing 6.5. A generated test method

Listing 6.6. An MSBuild target for running MSTest

Chapter 7. Performing integration, system, and acceptance testing