On occasion, there may be a case where you go into Test Explorer, knowing that you have XUnit tests within the solution; the Xunit tests are in a public class, they are public, and they are decorated correctly (for example, [Fact]). However, they do not appear in the Text Explorer.
If you have MS Test tests, you may find that they do appear in the Test Explorer - only the XUnit tests do not.
To run Xunit tests from the command line, you’ll need this package.
To run Xunit tests from Visual Studio, you’ll need this package.