scripts/generate_coverage_config.md
This script generates a custom .coveragerc file for backend testing that excludes:
SIDEBAR_BUNDLES from src/frontend/src/utils/styleUtils.tslegacy = TruestyleUtils.ts to extract bundled component names.py files in src/backend/base/langflow/components/ with legacy = True# Generate config and run tests
python3 scripts/generate_coverage_config.py
cd src/backend && python -m pytest --cov=src/backend/base/langflow --cov-config=.coveragerc
The script runs automatically in CI before backend tests via .github/workflows/python_test.yml.
src/frontend/src/utils/styleUtils.ts (SIDEBAR_BUNDLES)src/backend/base/langflow/components/**/*.py (legacy components)src/backend/.coveragerc (auto-generated, in .gitignore)