Explain how to test classes for junit using ant script?



Explain how to test classes for junit using ant script?..

Answer / Hemant Kumar Mishra

To test JUnit classes using Ant, first ensure you have the JUnit taskdef in your build.xml (or include it if using a third-party library). Then, define the tests you want to run using `<test>` tags under the `<build>` element. Each test should contain a reference to the .java file and its corresponding test .java file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Ant Interview Questions

How we can set compile target using ant?

1 Answers  


Explain how to import .jar files?

1 Answers  


Why do you call it ant?

1 Answers  


How many types of build tool you know?

1 Answers  


What is advantage of ant 1.7.1?

1 Answers  


What are the core concepts of ant?

1 Answers  


How many ways we can set properties into build ant file?

1 Answers  


Explain how to use ant-contrib tasks?

1 Answers  


Which version of java is required to run ant?

1 Answers  


How we can run jar using ant?

1 Answers  


Explain how to use runtime in ant?

1 Answers  


Explain how to compile using ant script?

1 Answers  


Categories