是否可以抑制流利断言消息的 "with configuration:" 部分
Is it possible to suppress the "with configuration:" part of a fluent assertion message
我有一个参数化测试 I 运行 来自命令行,当所有测试都失败时,在错误消息中我得到了每次失败的文本:
With configuration:
- Use declared types and members
- Compare enums by value
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Without automatic conversion.
- Without automatic conversion.
- Be strict about the order of items in byte arrays
我意识到此信息在诊断某些测试失败方面具有价值,但在这种情况下,它占用了大量文本行,导致许多测试用例在我的控制台中滚出视图 window。
我想知道是否/如何关闭这些消息?
你不能。但我希望你只是偶尔失败,对吧?
我有一个参数化测试 I 运行 来自命令行,当所有测试都失败时,在错误消息中我得到了每次失败的文本:
With configuration:
- Use declared types and members
- Compare enums by value
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Without automatic conversion.
- Without automatic conversion.
- Be strict about the order of items in byte arrays
我意识到此信息在诊断某些测试失败方面具有价值,但在这种情况下,它占用了大量文本行,导致许多测试用例在我的控制台中滚出视图 window。
我想知道是否/如何关闭这些消息?
你不能。但我希望你只是偶尔失败,对吧?