cd C:\Users\NotsideRC\Documents\NTSD\2\pbfl\packages\flowfull-clients\flowfull-pythonOption A - Global Installation (Simpler):
pip install -r requirements-dev.txtOption B - Virtual Environment (Recommended):
# Create virtual environment
python -m venv venv
# Activate virtual environment
.\venv\Scripts\Activate.ps1
# Install dependencies
pip install -r requirements-dev.txtpython run_tests.pyOr directly:
python -m pytestpip install package📍 Installed at: C:\Users\NotsideRC\AppData\Local\Programs\Python\Python3XX\Lib\site-packages
✅ Advantages:
- Available for all projects
- No need to activate anything
❌ Disadvantages:
- Can cause conflicts between projects
- Difficult to maintain different versions
python -m venv venv
.\venv\Scripts\Activate.ps1
pip install package📍 Installed at: .\venv\Lib\site-packages (this project only)
✅ Advantages:
- Isolated per project
- No version conflicts
- Easy to clean (just delete venv folder)
❌ Disadvantages:
- Need to activate environment each time
- Takes more space (each project has its packages)
NO you don't need to restart the computer after installing packages.
You only need to:
- Close and reopen the terminal if you installed something new
- Or simply run the command again
python run_tests.pypython run_tests.py --covpython run_tests.py --verbosepython run_tests.py --fast# All tests
python -m pytest
# With verbose
python -m pytest -v
# With coverage
python -m pytest --cov=core --cov-report=html
# Specific test
python -m pytest tests/test_client.py
# Specific test with verbose
python -m pytest tests/test_client.py -vSolution:
# Install pytest
pip install pytest
# Or install all dependencies
pip install -r requirements-dev.txtSolution:
# Make sure you're in the correct folder
cd C:\Users\NotsideRC\Documents\NTSD\2\pbfl\packages\flowfull-clients\flowfull-python
# Run tests
python -m pytestSolution:
# Run PowerShell as Administrator and execute:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Then try again:
.\venv\Scripts\Activate.ps1Solution:
- Close and reopen the terminal
- If using virtual environment, deactivate and activate again:
deactivate .\venv\Scripts\Activate.ps1
After running with coverage:
python run_tests.py --covOpen the HTML report:
# Open in browser
start htmlcov\index.html- Use virtual environment to keep the project isolated
- Run tests frequently to catch errors early
- Review coverage to ensure everything is tested
- Global installation if you just want to test quickly
- Use
python run_tests.pyto run tests easily - Use
--fastfor quick tests during development
# 1. Navigate to folder
cd C:\Users\NotsideRC\Documents\NTSD\2\pbfl\packages\flowfull-clients\flowfull-python
# 2. Install dependencies (first time only)
pip install -r requirements-dev.txt
# 3. Run tests
python run_tests.py
# 4. View coverage
python run_tests.py --cov
start htmlcov\index.html# Verify Python
python --version
# Verify pip
pip --version
# Verify pytest
python -m pytest --version
# List installed packages
pip listReady to start! 🎉