带有参数化单元测试的 .NET 测试框架,每个组合显示红色/绿色? [英] .NET test framework with parameterized unit testing, that shows red/green for each combination?
问题描述
或 TestCaseSourceAttribute
指定不同的测试参数.每个测试用例将在测试运行器中显示为单独的测试.
Parameterized Unit Testing is great when you have X unit test * Y configurations.
I have 3 unit tests, and each must run in 5 particular situations.
I use xUnit.net's Theory
/PropertyData
feature, it works well.
PROBLEM: In the Test Runner UI, there is one green/red symbol per unit test, which means 3.
It makes it difficult to evaluate progress: the symbol is red until ALL configurations work perfectly.
I want 15 symbols, one per unit test * configuration, to know what particular combination is going wrong.
xunit.net has yet to implement the feature to show 15 symbols.
I am willing to switch to another test framework just to get this feature.
QUESTION: Does any .NET test framework have this feature?
Any kind of reporting is fine (GUI, HTML, etc)
You can use TestCaseAttribute
or TestCaseSourceAttribute
of NUnit to specify different parameters for test. Each test case will be shown as separate test in test runner.
这篇关于带有参数化单元测试的 .NET 测试框架,每个组合显示红色/绿色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!