Empty Junit reports from ant

后端 未结 4 1570
时光取名叫无心
时光取名叫无心 2021-01-06 07:09

I am trying to use ant to run junit tests and generate reports. I am able to successfully run the tests but the report files are empty.

What am I doing wrong ?

4条回答
  •  误落风尘
    2021-01-06 07:41

    If you look at the ant snippet, there are a few issues:

    • You have set usefile=false, which means no output file is created
    • You have set formatter type=brief, which will print detailed information only for failed tests
    • You need to also specify the todir - the folder where the report has to go in the tag - the default is current folder. This should match the folder you are using in task.

    You can try with the following updated section...

        
            
            
            
        
    

提交回复
热议问题