How do I skip specific tests in xUnit based on current platform April 14, 2023 by Tarik Billa XUnit v2.0 is now available. Skippable tests are supported by it directly. Use: [Fact (Skip = "specific reason")] More Related Contents: Pass complex parameters to [Theory] What is the JUnit XML format specification that Hudson supports? Visual Studio 2015 or 2017 does not discover unit tests Mock Verify() Invocation Assert an Exception using XUnit xUnit : Assert two List are equal? how do I mock sqlconnection or should I refactor the code? Net Core: Execute All Dependency Injection in Xunit Test for AppService, Repository, etc