testfx
testfx copied to clipboard
Possibility to treat missing dynamic data as warning?
Hello,
we dynamically get our data for our unit test from different databases. Sometimes there is no data for specific cases on specific databases. This is not a bug and intended. However these tests do not run because of missing data. This is expected. The following message is displayed:
Property or method TestData on XyViewModelTests returns empty IEnumerable<object[]>
But these tests are then marked as failed --- is there a possibility to treat such cases (when there is not data) as warning?
Thank you!
Hi @fx999dev, thanks for the suggestion! is it gonna be okay if marked as failed and attached a warning with the output? or you suggested to mark it as ignored with the output with the reason of no driven data received?
We would prefer the second option. Mark it as ignored with the output with the reason of no driven data received.
We will add a runsettings MSTest entry that will allow to consider this case as a single test returning "inconclusive" result.