pytest@python

不失败即成功

Introduction

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.

Features
该测试框架有以下特征:

  • 详细的测试失败日志;
  • 自动发现需要测试的组件和/或方法;
  • 提供模块化的设施,可支持或小或大或参数化的复杂场景;
  • 支持测试框架unittestnose
  • 支持插件,已有315+外部插件;社区良好。

Documentation
http://docs.pytest.org/en/latest/contents.html#toc

Modular Fixtures

More info sees http://docs.pytest.org/en/latest/fixture.html#fixture.

References

http://docs.pytest.org/en/latest/

0%