graphql-core icon indicating copy to clipboard operation
graphql-core copied to clipboard

How do you run tests with an IDE?

Open nrbnlulu opened this issue 1 year ago • 4 comments

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

nrbnlulu avatar Jul 02 '24 05:07 nrbnlulu

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?

erikwrede avatar Jul 02 '24 07:07 erikwrede

Ok I forgot to install extras

poetry install --with=test

nrbnlulu avatar Jul 02 '24 07:07 nrbnlulu

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

erikwrede avatar Jul 02 '24 08:07 erikwrede

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

Cito avatar Jul 02 '24 08:07 Cito