如何仅在azure devops CI env中而不是在本地运行某些NUnit测试 [英] How to run some NUnit tests only in azure devops CI env but not locally

查看:139
本文介绍了如何仅在azure devops CI env中而不是在本地运行某些NUnit测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与此相同:

Identical to this: How to run some tests only in azure devops CI env but not locally, but for NUnit, rather than xUnit.

我希望我的某些测试能够通过Azure DevOps管道运行,而不希望通过本地(VisualStudio + R#)IDE运行.

I want some of my test to get run by my Azure DevOps pipeline, but not by my local (VisualStudio + R#) IDE.

链接的问题使用自定义的xUnit属性解决了此问题,但是我的项目使用NUnit,因此该问题的答案无济于事.

Linked question solves this with a custom xUnit Attribute, but my project uses NUnit so answers to that question won't help.

推荐答案

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆