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.
分享到:
相关推荐
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.
GEE训练教程
【整合BIEE与Oracle SSO门户的详细步骤】 在企业级IT环境中,实现单点登录(SSO)是提高用户便利性和系统安全性的重要手段。本文档将详细讲解如何将Oracle Business Intelligence Enterprise Edition(BIEE)与...
【知识点详解】 本文主要介绍如何在Microsoft Visual C++ 2010 Express环境下安装和集成Visualization Toolkit(VTK)。VTK是一个开源的、用于三维图形渲染和可视化的库,广泛应用于科学计算和数据分析领域。...
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...
《Integrate就医服务平台论文》是一份深入探讨现代医疗系统整合技术的重要文献,旨在解析和阐述Integrate就医服务平台的设计理念、架构及其与硬件设备的交互方式。这篇论文详细介绍了如何通过集成化的方式提升医疗...
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 ...
1. 手册概述:本手册是针对SINUMERIK Integrate Create MyHMI / WinCC V14的配置手册,专门适用于数控系统SINUMERIK 840D sl 和 840DE sl,以及CNC软件840D sl 和 840DE sl V4.5和V4.7版本,还包括TIAPortal V1410/...
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.
You will also implement various native plugins and integrate them with Ionic and Ionic Cloud services to use them optimally in your application. By this time, you will be able to create a full-...
This book starts with a basic setup of ownCloud for personal use and then clearly scales out various components of ownCloud with examples This book will also help provide you with the understanding to...
Integrate Xtext with popular third party IDEs and get the best out of both worlds. Discover how to test a DSL implementation and how to customize runtime and IDE aspects of the DSL Who This Book Is ...
You will then move on to learning how to integrate Hadoop with the open source tools, such as Python and R, to analyze and visualize data and perform statistical computing on big data. As you get ...