For each kind of software language in the industry there are a variety of build tools that can be used for build automation. When it comes to Java or Java related languages, following are the major build tools that are being used by the software industry:
As part of this chapter we will cover Ant and Maven for automating our builds to compile and run our TestNG tests.
Ant is one of the most commonly used build tools by the software industry for the build automation of Java-based products. It is configured using an XML file and by default the configuration file name for Ant is named as
build.xml. In this section we will learn how to install the Ant tool and use it to run TestNG tests.