Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Latest commit

 

History

History
36 lines (28 loc) · 1.71 KB

README_PYCHARM.md

File metadata and controls

36 lines (28 loc) · 1.71 KB

Wordplay: PyCharm Configuration

Additional PyCharm instructions that accompany the Wordplay mini project.

Contents

References

Quick Set Up

  1. 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.
    PyCharm project interpreter
  2. 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
  3. Run pytest from the GUI.
    Find the file test_wordplay.py in the project layout in the left hand pane.
    Right-click and choose Run '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.
    PyCharm running pytest
  4. Git branches can be managed and changed using the control in the bottom right corner.
    PyCharm Git menu