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

How do you run tests with an IDE? #220

Open
nrbnlulu opened this issue Jul 2, 2024 · 4 comments
Open

How do you run tests with an IDE? #220

nrbnlulu opened this issue Jul 2, 2024 · 4 comments
Labels
documentation Improvement of docs, docstrings etc. good first issue Good for newcomers

Comments

@nrbnlulu
Copy link
Contributor

nrbnlulu commented Jul 2, 2024

seems like pycharm / vscode can't recognise them since they are not prefixed with test_

@erikwrede
Copy link
Member

PyCharm works out of the box for me:
image

Make sure to have your venv setup in the project settings. Apart from that, you can always create your own pytest run config in pycharm or vscode. Is there any particular step your IDE seems to fail at?

@nrbnlulu nrbnlulu closed this as completed Jul 2, 2024
@nrbnlulu nrbnlulu reopened this Jul 2, 2024
@nrbnlulu
Copy link
Contributor Author

nrbnlulu commented Jul 2, 2024

Ok I forgot to install extras

poetry install --with=test

@nrbnlulu nrbnlulu closed this as completed Jul 2, 2024
@erikwrede
Copy link
Member

This caught me off-guard a few times in this project as well 😆

@Cito
Copy link
Member

Cito commented Jul 2, 2024

Reopening this as a reminder to add a "development" section to the README (even though probably nobody reads READMEs)

@Cito Cito reopened this Jul 2, 2024
@Cito Cito added good first issue Good for newcomers documentation Improvement of docs, docstrings etc. labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvement of docs, docstrings etc. good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants