【发布时间】:2019-06-18 14:43:34
【问题描述】:
无法弄清楚如何使用从我的解决方案中的 xUnit-tests 项目(ASP.NET Core 2,解决方案中的测试项目)返回的国际(在本例中为俄语)字符来解决我的问题。
问题是:如何让它们可读?
我使用的是基于 Ubuntu 16.04 的 build-machine,上面你可能会看到 Assert 失败的结果。应该比较 2 个字符串,我什至不明白我在那里有什么字符串。所以我想要的是看到真实的文本而不是这些 ��� 。
我想这也可能是本地测试失败的原因,在我的笔记本电脑上一切都很好,我没有失败的测试。但在那里我可以看到一些额外的字符 - 那是什么?看不懂……
这是在 Azure Pipeline 上运行测试的部分(来自 azure-pipelines.yml)^
- task: DotNetCoreCLI@2
displayName: 'dotnet test $(buildConfiguration)'
name: testsRun
continueOnError: true
inputs:
command: test
projects: '*Test.*/*.csproj'
arguments: '--configuration $(buildConfiguration) --collect:"Code coverage" --no-build --no-restore'
testRunTitle: 'run all tests'
publishTestResults: true
提前致谢!
PS - 上次在这里问问题是很久以前的事了:)
【问题讨论】:
标签: localization azure-devops xunit