T
test-fixing
Run tests and systematically fix all failing tests using smart error grouping. Use when user asks to fix failing tests, mentions test failures, runs test suite and failures occur, or requests to make tests pass.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Run tests and systematically fix all failing tests using smart error grouping. Use when user asks to fix failing tests, mentions test failures, runs test suite and failures occur, or requests to make tests pass.
How to use
- Zainstaluj umiejętność w swoim środowisku Claude'a, dodając plik test-fixing do katalogu skills. 2. Poproś Claude'a o naprawę testów, na przykład: "napraw te testy", "test suite jest zepsuty" lub "chcę, aby wszystkie testy przeszły". 3. Claude uruchomi
make testlubuv run pytest, aby zidentyfikować wszystkie nieudane testy i przeanalizować ich wyniki — liczbę błędów, typy błędów i moduły, które je powodują. 4. Umiejętność automatycznie grupuje błędy po typie (ImportError, AttributeError itp.), module lub pierwiastku zła, a następnie priorytetyzuje grupy — najpierw błędy infrastrukturalne (import, zależności), potem zmiany API. 5. Dla każdej grupy Claude przeczyta kod, sprawdzi ostatnie zmiany, zidentyfikuje przyczynę, wprowadzi poprawkę za pomocą narzędzia Edit, a następnie uruchomi podzbiór testów dla tej grupy (np.uv run pytest tests/path/to/test_file.py -vlubuv run pytest -k "pattern" -v), aby potwierdzić, że błędy zostały rozwiązane. 6. Proces powtarza się dla następnej grupy, aż wszystkie testy przejdą pomyślnie.