You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Only the first throwing data source of a test method is reported #7884
When a test method has two data sources that both throw, only the first failure is reported, in both discovery modes. The second source's failure never appears, so fixing the first one reveals the second only on the next run.
Run with --treenode-filter "/*/*/TwoThrowingSourcesTests/*", once as is and once with --reflection added.
Expected and actual
Expected: two failed tests, one per source, the second reporting InvalidOperationException: second.
Actual: in both modes there is one test, which fails with first (wrapped in TargetInvocationException in reflection mode). Building the method's tests stops at the first source that throws.
Environment
origin/main 01c0862, .NET SDK from global.json, net10.0, macOS arm64. Found while working on #7883.
Should each data source that throws produce its own failed test?
Activity