问题描述
在 Visual Studio 2017 中使用 Catch2 Test Adapter,我的一些测试出现错误,其中包括长场景名称。我不知道确切的长度阈值,但当 scenarios 的字符串长度约为 80 个字符或更多时,似乎会发生这种情况。有没有办法解决这个问题,而不是仅仅使用较短的场景值?
示例场景,
SCENARIO("I want to be the very best,Like no one ever was. To catch them is my real test,To train them is my cause!")
{
...
}
visual studio 首次加载和扫描测试时的示例错误,
Error: Unable to reconstruct long test name
Source: C:\foo\bar\baz\Debug\CatchTests.exe
Name: Scenario: I want to be the very best,Like no one ever was.{???} To catch them is my real test,To train them is my cause!
File: C:\foo\bar\baz\src\myTest.cpp
Line: 123
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)