Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added collect_dependencies feature. #80

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ftesser
Copy link

@ftesser ftesser commented Dec 8, 2024

The purpose of this PR is to add the possibility of automatically collect dependent tests.
Is similar to what proposed in #37, but differs from these points:

  • the behavior is automatically spread on all tests (no need to add the mark parameter collect=True)
  • the behavior is enable/disable by a configuration that can be set in the ini file;
  • the searching of dependent tests is recursive;

The configuration option of this modality is set to false by default, so pytest-dependency does not change its default behavior.

This is an update of PR #56; this update contains these new points:

  • collect dependent tests of named dependency (@pytest.mark.dependency(name="a");
  • collect dependent tests of classes @ydirson ;
  • collect dependent tests of parametrize tests;
  • a fix a typo in tests/test_04_automark.py;

The PR contains new tests for all these points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants