How to run only one xUnit test in linqpad
Hi -
Is there a way to only run one test in linqpad instead of all? Does not seem like dotnet test --filter can work in linqpad. Wondering if there is an attribute or something that can be used instead of commenting out tests. Thanks.
Comments
If the test is defined at the top level, you can highlight the individual method and press F5 to run just that method:
Another solution is to open the xunit query and modify the RunTests method as follows:
Also add the following method: