Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 143489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:06:13+00:00 2026-05-11T08:06:13+00:00

We have migrated to both JUnit 4 and ant 1.7 The tests runs fine

  • 0

We have migrated to both JUnit 4 and ant 1.7

The tests runs fine in eclipse, but the annotations are ignored when running the tests using ant.

According to the Ant junit task documentation:

It also works with JUnit 4.0, including ‘pure’ JUnit 4 tests using only annotations and no JUnit4TestAdapter.

But the documentation doesn’t elaborate on how it should be configured.

Is there any special setting required for the junit task? Am I missing something? We have both Tests that extends TestCase (i.e. 3.8 style) and ‘pure’ Junit 4 tests, could that be the problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:06:14+00:00Added an answer on May 11, 2026 at 8:06 am

    I am using pure JUnit4 tests with Ant.

    Here is the interesting part of my build file:

    <junit printsummary='yes' haltonfailure='yes'>     <formatter type='xml'/>     <classpath refid='path.test'/>     <batchtest fork='yes' todir='${dir.report.unittests.xml}'>         <fileset dir='src'>             <include name='**/*Test*.java'/>         </fileset>     </batchtest> </junit> 

    Make sure you have the latest version of the junit.jar file in the lib directory of Ant. As far as I know the required version is delivered with ant 1.7 or higher versions…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have both java and .net applications running on an app server using Microsoft
I have migrated a Web Application from MyEclipse to Eclipse WTP, and I am
I have migrated one ASP.NET v4.0 application to a new server running under a
Recently I have migrated my project from SQLServer 2000 to MySQL 5.2 using MySQL
I've looked around and tried many suggestions but none have worked. I recently migrated
I have a Wordpress Multisite which was working fine until I migrated the instance
I have migrated our company web apps from Windows Server 2003 to Windows Server
I have migrated Project server from one server to another. I am able to
Hi I have migrated our forums from phpbb2 to 3 (the latest version) and
At work, we have migrated from Windows XP to Windows Vista. After the migration,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.