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

Configuration with pytest.ini not working #135

Open
reyniersbram opened this issue Nov 12, 2024 · 0 comments
Open

Configuration with pytest.ini not working #135

reyniersbram opened this issue Nov 12, 2024 · 0 comments

Comments

@reyniersbram
Copy link

Bug Report

Current Behavior
Configuration in a pytest.ini or pyproject.toml file does not work.

Input Code

pytest.ini:

[pytest]
addopts = --memray
memray = true
hide_memray_summary = true

Or the pyproject.toml alternative:

[tools.pytest.ini_options]
addopts = "--memray"
memray = true
hide_memray_summary = true

Expected behavior/code

With this example configuration, I would expect the memray summary to not show after running pytest. Putting in any other configuration option has no effect either. When running pytest --memray --hide-memray-summary, or other options, this works as expected.

Environment

  • Python(s): Python 3.12, other versions not tested
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

No branches or pull requests

1 participant