IDE Configuration Examples¶
This directory contains example IDE configuration files for use with pytest-test-categories.
VS Code¶
Copy these files to your project’s .vscode/ directory:
File |
Purpose |
|---|---|
|
Copy to |
|
Copy to |
|
Copy to |
Quick Setup¶
# Create .vscode directory if it doesn't exist
mkdir -p .vscode
# Copy configurations (rename as appropriate)
cp vscode-settings.json .vscode/settings.json
cp vscode-tasks.json .vscode/tasks.json
cp vscode-launch.json .vscode/launch.json
Customization¶
After copying, you may want to customize:
settings.json: Update
python.defaultInterpreterPathif your virtual environment is in a different locationtasks.json: Add project-specific test commands or modify existing ones
launch.json: Adjust
justMyCodesetting based on your debugging needs
PyCharm¶
PyCharm stores run configurations in .idea/runConfigurations/. These are typically user-specific and may contain absolute paths.
Recommended Approach for PyCharm¶
Instead of copying configuration files, create run configurations manually:
Open Run > Edit Configurations
Click + and select pytest
Configure:
Name: “Small Tests” (or appropriate name)
Target: Select your test directory
Additional Arguments:
-m small(or other marker expression)
Repeat for each test size category
Usage¶
For complete documentation on IDE integration, see the IDE Integration Guide.