graphql-python / graphql-core

A Python 3.6+ port of the GraphQL.js reference implementation of GraphQL.
MIT License
502 stars 133 forks source link

How do you run tests with an IDE? #220

Open nrbnlulu opened 4 days ago

nrbnlulu commented 4 days ago

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

erikwrede commented 4 days ago

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 commented 4 days ago

Ok I forgot to install extras

poetry install --with=test
erikwrede commented 4 days ago

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

Cito commented 4 days ago

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