Make unit tests and functional tests work with pytest runner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octavia |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Pytest is a superior test runner compared to stestr, at least for local test development and debugging. It supports running Python `unittest` type tests like Octavia implements. However, certain specifics of some test case implementations make it fail to run tests correctly. This is because pytest picks up tests based on their file name, class name and method name.
One example are the tests implemented in [1]. Test methods of the base class get picked up by pytest because of the class name, but it should only run them indirectly using the subclass.
Also, I noticed some instabilities when running unit tests in parallel with pytest and the test_get_member [2] test case fails because of a time out error.
[1]: https:/
[2]: https:/
Changed in octavia: | |
status: | New → In Progress |