一个pytest插件,用于通过将测试分成大小相等的组来运行测试的子集。

pytest-test-groups的Python项目详细描述


Build Status

欢迎来到pytest测试组!

pytest测试组允许您将测试运行分成 大小以便于分割测试运行。

使用量

# Install pytest-test-groups
pip install pytest-test-groups

# Split the tests into 10 groups and run the second group
py.test --test-group-count 10 --test-group=2

# Randomize the test order, split into 10 groups, and run the second group
py.test --test-group-count 10 --test-group=2 --test-group-random-seed=12345

我为什么要用这个?

有时,您可能有一些长时间运行的测试作业需要 同时完成。当你试图 快速运行测试。pytest测试组允许您轻松地说 “将我的测试分成10个测试组并运行第二组”。 这主要适用于ci构建的上下文。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Hibernate、Spring和SLF4J绑定   java如何准确地导航导航地图。天花板入口()工作?   从excel文件导入数据时发生java异常   java如何将地图转换为url查询字符串?   java HSQLDB在数据库中插入值   java将元素从JTextField添加到ArrayList   java如何使用SetDataSource从名称中有空格的MP3文件中获取唱片集艺术   java排序ArrayList<ArrayList<String>>作为行字段   java在拼写检查器中更新正确的拼写   哪里可以找到JavaAPI类图?   spring boot如何在自动生成的swagger java类中屏蔽任何参数   java使用哪种设计模式(我需要类似中介模式的东西)?   java为什么JTextfield没有出现在这个实例中?   如何在Java中向当前日期添加一个月?   安卓如何使java类可序列化,从而扩展不可序列化的