且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Maven中的Scalatest:JUnit结果

更新时间:2023-09-18 08:45:58

我认为我能够解决这个问题.我的问题是我对VSTS的误解.但是,我的测试既生成了JUnit格式的测试结果,也生成了非JUnit格式的结果.因此,在我的构建配置中,我需要删除不必要的测试结果文件.VSTS并不是最直观的工具,因此对于测试结果的去向,我感到困惑.我的构建文件显示了通过的测试数量,但没有显示详细信息.我发现,如果在构建过程中测试失败,则失败的详细信息将显示在构建页面上.如果我想查看通过的测试的实际名称,则需要转到测试"选项卡,然后在运行"下查看.在那里,我将看到更详细的结果.

I think I was able to figure this out. My problem was with my misunderstanding of VSTS. However, my tests were generating both the JUnit formatted test results, as well as non-JUnit formatted results. So in my build configuration I need to remove the unnecessary test result files. VSTS is not the most intuitive tool to use, so I was confused as to where the test results were going. My build file shows me the number of tests that passed, but not details. I discovered that if a test fails during a build, details of the failure will show up on the build page. If I want to see the actual names of the tests which passed, I need to go to the "Test" tab and look under "Runs". There I will see a more detailed result.