unit testing - Issues using DataTestMethod and DataRow attributes in MS Test -
i have installed ms test v2 in vs 2015 instance using nuget , have added datatestmethod
, datarow
attributes unit tests , compile, when build, tests don't show in test explorer.
example:
[datatestmethod] [datarow("yahoo", "google")] public void testchecksite(string site) { ... stuff here ... }
what missing? there test explorer upgrade?
- install mstest framework: https://www.nuget.org/packages/mstest.testframework/
- if building .net core, install adapter: https://www.nuget.org/packages/dotnet-test-mstest/
- however, if building desktop .net/uwp, install adapter instead: https://www.nuget.org/packages/mstest.testadapter/
- now write tests , build solution. tests ought show in test explorer.
please let me know if still not see tests showing up.
Comments
Post a Comment