#49335 Individual tests cases should be self contained
Closed: wontfix 3 years ago by spichugi. Opened 6 years ago by vashirov.

Some of the tests in tickets are not self contained, meaning that they require some specific setup to be executed. Generally it is solved by using pytest fixture, but not all our code uses that.

Why it's needed? Py.test allows execution in parallel using pytest-xdist. It distributes the tests across workers simply sending each test case to a different worker. When using pytest-xdist, many test cases fail in current state.

This effort can be combined with moving tests from tickets to suites. To preserve the relation between the test and the issue in pagure we can use pytest marks.


Metadata Update from @vashirov:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Custom field type adjusted to None
- Custom field version adjusted to None
- Issue priority set to: normal
- Issue set to the milestone: CI test FUTURE

6 years ago

Metadata Update from @vashirov:
- Issue set to the milestone: CI test 1.0 (was: CI test FUTURE)

4 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2394

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata