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

Auto-Run? #1

Closed
KyleKing opened this issue Nov 1, 2021 · 2 comments
Closed

Auto-Run? #1

KyleKing opened this issue Nov 1, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@KyleKing
Copy link

KyleKing commented Nov 1, 2021

Would you consider making pytest-watcher run right away rather than waiting for changes?

I find that I often end up adding and deleting lines to trigger the first run

@olzhasar
Copy link
Owner

olzhasar commented Nov 2, 2021

Thank you for your suggestion.

You can trigger tests by just saving any *.py file in your project, no need to necessarily add or delete lines.
Does this solve your issue?

Regarding auto-run, oftentimes users start pytest-watcher prior to making changes to their code. In those cases running tests instantly is not the desired behavior. I need to think about it a bit

@KyleKing
Copy link
Author

KyleKing commented Nov 2, 2021

Thanks for the quick reply and saving does work. I thought that my editor might skip saving if no changes and thought I tested it, but it does work

No need to add an extra branch if the default works, but feel free to reopen!

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

2 participants