How to get full stack traces logged when a JUnit test running in ant fails?

前端 未结 2 1361
忘了有多久
忘了有多久 2021-01-07 12:18

When a JUnit test throws a runtime exception while running in Eclipse, you can see the entire stack trace.

Our build server uses ant and runs JUnit, but the printout

2条回答
  •  误落风尘
    2021-01-07 12:58

    I've posted this answer to this question before realizing that it was a duplicate of yours.

    Here is my junit tag that does produce the exception trace.

    
      
        
        
      
    
      
      
      
      
    
      
      
    
      
        
          
          
        
      
    
    
    

    I think the one nested element that will do it for you is

      
    

提交回复
热议问题