pytest跳过特定平台上测试的标记
pytest-platform-markers的Python项目详细描述
pytest跳过特定平台上测试的标记
功能
此插件向pytest添加以下标记:
- posix:除了在POSIX操作系统(Linux/OSX,os.name != 'posix')上,已跳过
- windows:除了在Windows(os.name != 'nt')上,已跳过
- linux:已跳过,Linux除外(sys.platform.startswith('linux'))
- osx:已跳过,OS X除外(sys.platform != 'darwin')
- not_osx:在OS X上跳过(sys.platform == 'darwin')
- not_frozen:冻结时跳过(getattr(sys, 'frozen', False))
- frozen:跳过,除非冻结(not getattr(sys, 'frozen', False))
- ci:已跳过,但在CI系统上除外('CI' not in os.environ)
- not_ci:在CI系统上跳过('CI' in os.environ)
贡献
我们非常欢迎您的贡献。测试可以用tox运行,请确保 在提交请求之前,覆盖范围至少保持不变。
许可证
根据MIT许可证的条款,“pytest平台标记”是免费的开源软件
问题
如果您遇到任何问题,请file an issue连同详细说明。