This directory contains VS Code configuration for the Checkbox project:
Precondition: Setup Python virtual environment described in CONTRIBUTING.md
To set up the Python interpreter, follow these steps:
- Open the command palette using
Ctrl + Shift + P. - Type
Python: Select Interpreterand pressEnter. - Select
Pythonfrom the virtual environment. For example, if you name your virtual environmentvenvand place it in the checkbox-ng directory, the path should be./checkbox-ng/venv/bin/python. - (Optional) Open the command palette again, type
Developer: Reload Window, and pressEnter. This ensures that the changes are applied.
Tests are discovered in Test Explorer. You can run and debug them. Currently, only tests from checkbox-ng are loaded in the Test Explorer. Alternatively, you can run tests directly from the VS Code terminal:
pytest ./checkbox-ng # run tests from checkbox-ng
pytest ./checkbox-support # run tests from checkbox-supportThe code can be run and debugged using the VS Code Debugger. In the Debugger, the Start Debugging dropdown offers these options:
Debug checkbox-cliruns checkbox-cli in the integrated terminal with --clear-cache and --clear-old-sessions parameters.Debug checkbox-cli with argsprompts you to enter parameters and uses them to run checkbox-cli.