Additional PyCharm instructions that accompany the Wordplay mini project.
- PyCharm should recognize your virtual environment once it is created.
If not, set the project interpreter under general preferences:
File > Settings > Project: wordplay > Project Interpreter
(on Mac: PyCharm > Preferences > Project: wordplay > Project Interpreter)
Choose your virtual environment in the drop down list in the right hand area.
- Run
pytest
from the built in Terminal.
Launch the PyCharm Terminal from the bottom frame, just below the editor pane.
You can confirm your virtual environment is active when(wordplay)
is displayed in the prompt.
If PyCharm does not automatically activate your virtual environment, review step 1.
From the command prompt type and execute:
pytest -v
- Run
pytest
from the GUI.
Find the filetest_wordplay.py
in the project layout in the left hand pane.
Right-click and chooseRun 'pytest in test_wordp...'
This will open the Test palette to display execution results and allow easy re-execution of tests via the green play control.
- Git branches can be managed and changed using the control in the bottom right corner.