Skip to content

test case name can be chinese? #2996

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

Closed
EtheriousNatsu opened this issue Dec 3, 2017 · 4 comments
Closed

test case name can be chinese? #2996

EtheriousNatsu opened this issue Dec 3, 2017 · 4 comments

Comments

@EtheriousNatsu
Copy link

i want my testcase name in html report and xml report can convert to chinese. here is my system info.

platform darwin -- Python 2.7.10, pytest-3.2.3, py-1.4.34, pluggy-0.4.0 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
cachedir: .cache
metadata: {'Python': '2.7.10', 'Platform': 'Darwin-16.0.0-x86_64-i386-64bit', 'Packages': {'py': '1.4.34', 'pytest': '3.2.3', 'pluggy': '0.4.0'}, 'JAVA_HOME': '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home', 'Plugins': {'html': '1.16.0', 'metadata': '1.5.1'}}
rootdir: /Users/john/Desktop/gabbi-1.30.1, inifile:
plugins: html-1.16.0, metadata-1.5.1

image

@EtheriousNatsu
Copy link
Author

please tell me how can i do

@RonnyPfannschmidt
Copy link
Member

i recall, that using actual unicode strings is supposed to somewhat work - CC @nicoddemus

@EtheriousNatsu
Copy link
Author

i want testcase name in pytest-html、pytest-xml display chinese

@nicoddemus
Copy link
Member

Unfortunately keeping unicode in the parametrized values caused all kinds of bugs (#1085) where things would just break apart, so we decided to go with the safer route and always escape ids using a safe ascii representation, even in Python 3.

So @EtheriousNatsu I'm afraid we will have to close this as "working as intended".

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