Executing Tests using dotnet runner cli doesn't interpret DynamicData RRS feed

  • Question

  • I have a test case (MS UnitTest Framework) that uses the [DataTestMethod] [DynamicData(nameof(GetTestData), DynamicDataSourceType.Method)] attributes to iterate thru several objects.  Running the test in VS TestExplorer it works fine. It iterates thru all the rows being passed (works like a champ).  However, when I run the same test case from the command console using dotnet or vstest.console runners, it executes the test only once.

    Am I missing something?


    Monday, September 28, 2020 7:13 PM

All replies

  • Hi Highlander4,

    Thank you for posting here.

    Since your question is more related to UnitTest. Therefore, it will be more appropriate to ask your question in vs-testing(Q&A) forum.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, September 29, 2020 3:20 AM