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

A way to use pytest-timeout #125

Open
nathanjmcdougall opened this issue Nov 17, 2024 · 0 comments
Open

A way to use pytest-timeout #125

nathanjmcdougall opened this issue Nov 17, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nathanjmcdougall
Copy link
Owner

Motivation
pytest-timeout is a nice plugin, especially for CI, to avoid tests which take too long.

Should:

  • Install the dep
  • Add the pyproject.toml config
    Probably a simple as that.

The tricky question is the best interface. a --timeout=60 flag to usethis tool pytest is tempting. Arguably some timeout as a default is a good idea though. More thought needed on this one. A similar approach might be taken for other extensions e.g. pytest-emoji.

On the one hand, it's probably quite aggressive to install tons of (mostly overkill) pytest plugins. On the other hand, things that support best practice are good. I think a flag is probably the best balance but again; more thought needed.

Summary of desired enhancement
Implement a way to add pytest-timeout to a project.

@nathanjmcdougall nathanjmcdougall added the enhancement New feature or request label Nov 17, 2024
@nathanjmcdougall nathanjmcdougall self-assigned this Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant