Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to treat missing dynamic data as warning? #1748

Closed
fx999dev opened this issue Oct 10, 2023 · 4 comments · Fixed by #2771
Closed

Possibility to treat missing dynamic data as warning? #1748

fx999dev opened this issue Oct 10, 2023 · 4 comments · Fixed by #2771

Comments

@fx999dev
Copy link

fx999dev commented Oct 10, 2023

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!

AB#2046260

@engyebrahim
Copy link
Member

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?

@fx999dev
Copy link
Author

We would prefer the second option. Mark it as ignored with the output with the reason of no driven data received.

@Evangelink
Copy link
Member

We will add a runsettings MSTest entry that will allow to consider this case as a single test returning "inconclusive" result.

@testplatform-bot
Copy link
Contributor

✅ Successfully linked to Azure Boards work item(s):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants