I'm trying to write unit tests in MSTest and I've created two TestClasses. When I look at the Test List Editor, the only tests that are shown are the ones that appear in one of the classes.
I can't figure out how to get tests from both of these classes to run. Any ideas?
(For the next one who arrives here via google looking for answers)
In my case, none of the above applied.
The key element to make all test files (and the classes therein) show up in the Test Explorer (VS2019) was adding the public keyword to each test class. Didn't need it before with Nunit, but we moved to MSTest and then the tests disappeared. Adding public made them show up again:
[TestClass]
public class TestBibTeX // <-- +public+
{
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With