Running “pure” JUnit 4 tests using ant

后端 未结 9 755
一个人的身影
一个人的身影 2020-12-25 13:05

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 t

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-25 13:22

    I am using pure JUnit4 tests with Ant.

    Here is the interesting part of my build file:

    
        
        
        
            
                
            
        
    
    

    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...

提交回复
热议问题