[英]Test Summary Not Populated With Test Results in CircleCI
In CircleCI, I have a build executing automated tests. 在CircleCI中,我有一个执行自动化测试的构建。 It generates tests results in an XML file using
nose2
and junit
plugin. 它使用
nose2
和junit
插件在XML文件中生成测试结果。 The complete path of the test result file is: 测试结果文件的完整路径为:
/project-folder/test/junit/test-result.xml
My CircleCI configuration in the file /project-folder/.circleci/config.yml
contains this: 我在文件
/project-folder/.circleci/config.yml
中的CircleCI配置包含以下内容:
- store_artifacts:
path: test/junit/test-results.xml
destination: test-results
- store_test_results:
path: test/junit/test-results.xml
When the build executes, it confirms that test results and artifacts are properly loaded: 当构建执行时,它确认测试结果和工件已正确加载:
Uploading artifacts
Uploading /home/circleci/repo/test/junit/test-results.xml to test-results
Uploaded /home/circleci/repo/test/junit/test-results.xml
Uploading test results
Archiving the following test results
* /home/circleci/repo/test/junit/test-results.xml
Uploaded
However, the test results still do not appear in the Test Summary tab (see screenshot below). 但是,测试结果仍未出现在“ 测试摘要”选项卡中(请参见下面的屏幕截图)。
I have looked into the documentation here: 我在这里查看了文档:
But I fail to see what I am missing? 但是我看不到我想念的东西吗? I also do not understand what the variable
$CIRCLE_TEST_REPORTS
refers to in the link above. 我也不明白变量
$CIRCLE_TEST_REPORTS
在上面的链接$CIRCLE_TEST_REPORTS
是什么。 What does it contain and how I should use it in my configuration. 它包含什么以及如何在配置中使用它。
To upload tests results on circle, you have to speficy the main test folder not the files. 要循环上传测试结果,您必须指定主测试文件夹而不是文件。
In your case it should be 在你的情况下应该是
- store_test_results:
path: test
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.