google / google/googletest

Generated XML test result files are not outputting UTF-8 encoded characters correctly using --gtest-output:xml

Open
#2,932 1 comment 0 reactions 1 assignee Claimed by @derekmauro View on GitHub
help wanted
Dominant language
C++
Stars
39.5k
Forks
10.9k
Avg merge
6d 13h
Merged PRs (30d)
1

Description

We have a .cpp google test file, with UTF-8 encoded characters in some of our test names, for example:

`TEST(stringReplace, Can_find_matching_characters_differing_case_Àà)`

When this is executed using the `--gtest-output:xml` flag, it is generating an .xml file which is declared as having UTF8 encoding (``), however those UTF8 characters are each being output as single byte ASCII characters.

This is causing issues when attempting to consume these files through an Azure Pipeline, using the [PublishTestResults](https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/PublishTestResultsV2) task.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.