Files
local-deep-research/scripts/dev/debug_pytest.py
LearningCircuit 6dd481a950 Cleanup/remove temp js files (#533)
* Clean up temporary JavaScript files and reorganize test files

- Remove temp_js_*.js files that appear to be development iterations
- Move test_simple_cost.js to tests/ui_tests/ where it belongs with other UI tests
- Move package.json to tests/ directory since it's only used for test dependencies (Puppeteer)
- These changes clean up the root directory from temporary development files

* chore: Clean up root directory and organize dev scripts

- Remove redundant app.py (was calling non-existent local_deep_research.main())
- Move development utility scripts to scripts/dev/:
  - kill_servers.py: Flask server process management
  - run_tests.py: Test runner with coverage
  - debug_pytest.py: CI test debugging
- Fix kill_servers.py to use correct server command (local_deep_research.web.app)

* fix: Update UI tests workflow to use tests/package.json

The npm install command was looking for package.json in the root directory,
but it was moved to tests/ directory. Update the workflow to install npm
dependencies from the correct location.

* fix: Update full tests workflow to use tests/package.json

Another npm install command in the full tests workflow was looking for
package.json in the root directory. Update it to install from tests/
directory where the package.json is located.
2025-06-22 19:32:42 -04:00

30 lines
674 B
Python
Executable File

#!/usr/bin/env python3
"""Debug script to run pytest with CI settings and see what's failing."""
import os
import subprocess
import sys
# Set CI environment to mimic CI behavior
os.environ["CI"] = "true"
os.environ["USE_FALLBACK_LLM"] = "true"
cmd = [
sys.executable,
"run_tests.py",
"-m",
"not slow",
"--ignore=tests/searxng/",
"--ignore=tests/unit/test_config.py",
"--ignore=tests/api_tests/",
"--ignore=tests/health_check/test_endpoints_health.py",
"-v",
"--tb=short",
"--timeout=30",
"-x", # Stop on first failure to debug
]
print(f"Running: {' '.join(cmd)}")
result = subprocess.run(cmd)
sys.exit(result.returncode)