How do I skip specific tests in xUnit based on current platform

后端 未结 5 696
鱼传尺愫
鱼传尺愫 2020-12-15 02:33
  • I have an assembly that I\'ve built on Windows
  • I want to run the xUnit tests on mono in Linux.

However, I have found that while 400 of these te

5条回答
  •  自闭症患者
    2020-12-15 03:06

    This is now solved in 1.8 - you can filter on Traits. See this issue log.

    Update: Traits work with the console runner but not MSBuild, I've added a feature request for this support.

提交回复
热议问题