python - 詹金斯上未显示覆盖率报告
问题描述
我有一个执行这个的詹金斯工作管道 -
执行鼻子测试 -
鼻子测试 --with-xunit --xunit-file=report/nosetests.xml --with-coverage --cover-package="testproject" --cover-html 测试/单元/*
这将在 report/nosetests.xml 下创建鼻子测试报告
它还创建一个包含覆盖率报告的 /cover 目录。
当我检查詹金斯页面以获取该工作时。显示测试结果,但显示覆盖率报告。
另外,这是我的管道 -
stage ('Unit Tests') {
steps {
sh """
#. venv/bin/activate
export PATH=${VIRTUAL_ENV}/bin:${PATH}
make unittest || true
"""
}
post {
always {
junit keepLongStdio: true, testResults: 'report/nosetests.xml'
publishHTML target: [
reportDir: 'cover/',
reportFiles: 'index.html',
reportName: 'Coverage Report - Unit Test'
]
}
}
}
解决方案
推荐阅读
- html - 如何在wiki中展开这两个文件夹
- python - 在 3D 数组中查找最大值的索引并存储为 2D 数组
- javascript - 这是处理 Javascript 不变性的正确方法吗?
- java - 修改后的 Minecraft 错误:没有这种方法?
- python - 如何使用在后台运行的 python 脚本轮询 JSON 文件中的更改并提取更改?
- docker - Spring Boot Redis 使用 Redis 时出现连接被拒绝异常
- c - 从 C 中的 PE 文件部分检索汇编代码
- wordpress - 在 WP 之外的外部 php 文件中传递 WordPress 标题
- c# - Sharepoint Add In App 中的部署错误“尝试了太多自动重定向”
- android - 如何使用 Places SDK for Android 在城市中获取旅游目的地?