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

[FR]: Ability to revert default args to pytest #469

Open
navignaw opened this issue Dec 8, 2024 · 1 comment
Open

[FR]: Ability to revert default args to pytest #469

navignaw opened this issue Dec 8, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Aspect isn't prioritizing this, but the community could

Comments

@navignaw
Copy link

navignaw commented Dec 8, 2024

What is the current behavior?

The pytest.py.tmpl hard-codes some default args to pytest:

args = [
"--verbose",
"--ignore=external/",
# Avoid loading of the plugin "cacheprovider".
"-p",
"no:cacheprovider",
]

  • It sets test output to verbose, which greatly increases the output to scroll through
  • It disables the cacheprovider plugin, which means that we can't use the --lf or --ff options to run the last failed or failed first.

Describe the feature

I'm curious:

  1. what was the motivation for these default arguments?
  2. can we make them configurable / opt-out either via environment variables? There is already the ability to add additional flags, but there doesn't seem to be a way to remove flags (at least, I'm not sure how to "un"-disable a plugin that was disabled in pytest).
@navignaw navignaw added the enhancement New feature or request label Dec 8, 2024
@thesayyn
Copy link
Member

This sounds like a good feature request, ideally we'd want to still add these flags, if no flags were provided, and let the call site completely override it.

I'd like to review a PR, if anyone would like to make one.

@thesayyn thesayyn added the help wanted Aspect isn't prioritizing this, but the community could label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Aspect isn't prioritizing this, but the community could
Projects
None yet
Development

No branches or pull requests

2 participants