ddt2

Data-Driven/Decorated Tests


License
MIT
Install
pip install ddt2==11.3.0.4

Documentation

Build Status codecov.io
Version Downloads

DDT2 (Data-Driven Tests) allows you to multiply one test case by running it with different test data, and make it appear as multiple test cases.

Installation

pip install ddt2

Check out the documentation for more details.

See Contributing if you plan to contribute to ddt, and License if you plan to use it.

I Modify ddt to ddt2 for i want to get some features, and not all functions of ddt can be uesed

  1. use version as ddt, and add the forth part as my modification, but add 10 to major verion, such as 1.3.0-> 11.3.0.1
  2. get the determined name of test case
  3. support for var to generate case
  4. support for i to have index
  5. parameter in a test function should not have i
  6. add function decorators autoindex
  7. @data_file add xlsx support, for example @data_file("a.xlsx", sheet="Sheet2"), if this feature used, openpyxl must be installed

update

11.3.0.4

  • 2020-4-28
  • if all grid in a line is blank, it should not return