Integration with Ant
http://www.javalobby.org/articles/testng/
As with any tool, testing or otherwise, there is often a way to integrate into one of the most popular build tools, Ant. Fortunately, TestNG is no different. To integrate TestNG into your build process, simply add the TestNG jar file to the classpath of Ant, then add the following task into your build file. Keep in mind that you’ll need to change the classpath to point to your build directories.
<taskdef name="testng"
classname="com.beust.testng.TestNGAntTask"
classpathref="project.class.path"/>
<target name="run-tests" depends="compile">
<echo message="running tests"/>
<testng fork="yes" classpathref="project.class.path" outputDir="">
<fileset dir="extras" includes="testing/test-config.xml"/>
<jvmarg value="-ea"/>
</testng>
</target>
The previous block of code works just like the JUnit ant task. It forks a separate JVM process, sets the output directory and the classpath, then runs TestNG with the specified configuration file. Once the tests have been run, a simple set of HTML pages detailing the results of the tests will be output to the directory you specified in the task for outputDir.
分享到:
相关推荐
How to integrate BIEE with Oracle SSO Portal.doc
Here is a short tutorial to teach you how to install VTK and integrate it with microsoft visual C++ 2010 Express.
apach module for integrate with tomcat
Here comes an example to show how BIRT integrate with RCP,This is not a complete project,But snippets are foundation to built large projects. It's worth learning.
AutoScale Hypbird Mode FGT Integrate with GWLB_LiuGang.pptx
Chapter 5 - Working with XML Chapter 6 - Overview of LiveCycle Data Services and BlazeDS Chapter 7 - Flex Data Access Methods Chapter 8 - Communicating with Server-side Java Chapter 9 - ...
Compile to integrate with whatsap, receive and send direct msg in your application delphi fully full component. see the video below for you to see how the component works ...
• Efficiently integrate Spark with both SQL and nonrelational data stores • Perform stream processing and messaging with Spark Streaming and Apache Kafka • Implement predictive modeling with SparkR...
Pro RESTful APIs Design Build and Integrate with REST JSON XML and JAX-RS 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn...
Discover the RESTful technologies, including REST, JSON, XML, JAX-RS web services, SOAP and more, for building today's microservices, big data applications, and web service applications....
Integrate就医服务平台论文 包含: Integrate就医服务平台介绍 HM628128A与SPCE061A硬件连接图
Web Programming with Dart is for programmers who want to master the new Dart programming language from Google, and also web developers who want to understand how Dart can integrate perfectly with ...
Apress.Pro.RESTful.APIs.Design.Build.and.Integrate.with.REST.JSON.XML.and.JAX-RS.148422664X.pdf (2017)
yolov8系列-- Food analysis baseline with Theseus. Integrate
MII Integrate BI.pdf
SINUMERIK Integrate Create MyHMI /3GL (Qt Api)
SINUMERIK Integrate Create MyHMI /3GL (CPP Api)
SINUMERIK Integrate Create MyHMI /3GL (.NET Api)
You will then move on to build a weather station with temperature, humidity and moisture sensors and further integrate Alexa with it. Further, you will build a smart wearable for understanding the ...
Key Features Build, deploy and manage cloud solutions using ...Extend your Azure Pack capabilities and integrate it with other vendors or solutions components such as VMware, Cloud Cruiser, etc.