Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在线链接可否改成本地文件? #57

Open
liyangzbx opened this issue Dec 25, 2024 · 3 comments
Open

在线链接可否改成本地文件? #57

liyangzbx opened this issue Dec 25, 2024 · 3 comments

Comments

@liyangzbx
Copy link

如题,这个地方,受限于网络环境,如果是无网或者弱网环境,导致报告打开只有文字,没有样式。可否将文件改为本地文件?
image

@Nick1211
Copy link

遇到同样的问题cloudflare申请的域名访问不了,架梯子才能访问。有必要改成本地的方便些。

defnngj added a commit that referenced this issue Jan 15, 2025
@defnngj
Copy link
Collaborator

defnngj commented Jan 15, 2025

@liyangzbx @Nick1211 升级到最新的 1.8.3 已经支持了。

  1. XTestRunner类增加了参数local_style 参数,默认为False
HTMLTestRunner(fp, local_style=True)
  1. 生成的报告下面多一个static目录。

image

  1. 查看报告使用本地样式。

image

@liyangzbx
Copy link
Author

@liyangzbx @Nick1211 升级到最新的 1.8.3 已经支持了。

  1. XTestRunner类增加了参数local_style 参数,默认为False
HTMLTestRunner(fp, local_style=True)
  1. 生成的报告下面多一个static目录。

image

  1. 查看报告使用本地样式。

image

Ok。另外,柱状图这里是不是有点小bug,中文报告中,柱状图每种分类的英语都显示Passed
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants