Run all tests and iterate to fix failures
Run the complete test suite and fix any failing tests.
Discover test configuration:
pytest.ini, pyproject.toml, or setup.cfg for test configurationpackage.json for JavaScript/TypeScript teststests/, test/, *_test.py, test_*.pyRun Python tests:
pytest -v --tb=short
If pytest is not available, try:
python -m pytest -v --tb=short
Run JavaScript/TypeScript tests (if applicable):
npm test
or
yarn test
For each failing test:
Read the test file and understand what it's testing
Read the implementation being tested
Identify the root cause of the failure
Fix the implementation (preferred) or update the test if the test is incorrect
Re-run the specific test to verify the fix:
pytest path/to/test_file.py::test_name -v
Iterate until all tests pass:
Final verification:
pytest -v
Report: