rdkcentral / python_raft

RAFT is a Python based testing framework for writing engineering tests. It provides a modular, config driven, low level testing framework
Apache License 2.0
2 stars 0 forks source link

Investigate using python unittest/pytest library with python_raft #59

Closed TB-1993 closed 1 month ago

TB-1993 commented 2 months ago

To further standardise the testing framework, it would be good to integrate it with an industry standard testing library. The two most standard libraries for testing with python are unittest and pyyaml. Below, I've started a list of pros and cons for each, but we will need to investigate the viability of integrating with each to decide which we use.

Unittest:

Pros:

Cons:

Pytest:

Pros:

Cons:

zghp commented 1 month ago

Can use unittest for the testControl class and the tests cases and then run the tests using pytest (which will have an xml output as well)