Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

unit-integration-testing

/unit-integration-testing

Pisze testy jednostkowe i integracyjne wokół jednego zachowania, np. błędu, reguły domenowej lub zapisu do bazy.

Repozytorium
skillsmo ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pisze testy jednostkowe i integracyjne wokół jednego zachowania, np. błędu, reguły domenowej lub zapisu do bazy.

Oryginalny opis (EN)

Write or improve automated unit and integration tests around a defined behavior. Use when a bug, API, domain rule, persistence path, or component needs fast repeatable coverage.

Jak działa

  1. Goal
  2. Workflow
  3. Decision rules
  4. Boundaries
  5. Completion standard
  6. Further reading
Sekcje z nagłówków SKILL.md, w oryginale · 35 linii, 240 słów
Podgląd SKILL.md
---
name: unit-integration-testing
description: "Write or improve automated unit and integration tests around a defined behavior. Use when a bug, API, domain rule, persistence path, or component needs fast repeatable coverage."
---

# Unit and integration testing

## Goal

Cover the behavior and its important boundaries with deterministic, maintainable tests.

## Workflow

1. Identify the behavior, contract, expected state changes, dependencies, and existing test conventions.
2. Choose the unit boundary for local rules or the integration boundary for database, framework, or service interaction.
3. Arrange isolated test data and dependency behavior; include meaningful valid, invalid, authorization, and failure cases.
4. Assert observable results and durable invariants without mirroring implementation details.
5. Run the focused test and report exact environment, commands, failures, and remaining coverage gaps.

## Decision rules

- Mock external nondeterministic services, but exercise real in-process boundaries when integration behavior matters.
- Use a test database or framework fixture where it catches serialization, policy, or transaction issues.
- Keep fixtures small and independent so order and parallel execution do not change outcomes.

## Boundaries

- Do not make a test pass by weakening the expected behavior.
- Do not represent mocks as proof that the real external integration works.

## Completion standard

Return the requested artifact or findings with enough evidence for a reviewer to understand what changed, what was checked, and what remains uncertain. Distinguish observed facts, inferred risks, and unverified assumptions. Keep the scope tied to the user's request.

## Further reading

- [Field guide](references/field-guide.md) — use for task-specific review questions and edge cases.
- [Source and rights notes](references/source-notes.md) — use when maintaining this package or reviewing its provenance.
Pliki w paczce (3)
  • SKILL.md 2 KB
  • references/field-guide.md 1 KB
  • references/source-notes.md 1 KB

Wersje

W bazie nie ma innych skilli o nazwie unit-integration-testing.

Migawka bazy z 13.11.2026 · wersja paczki 0fe8fb7c7c25 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100write-tests
    Pisze lub ulepsza testy automatyczne, które wykrywają realne błędy, w tym jednostkowe, API, integracyjne i przeglądarkowe.
  • 100test-unit
    Pisze testy jednostkowe i integracyjne dla wskazanego modułu lub zmiany, na przykład dla pojedynczej funkcji.
  • 100testing
    Tworzy i prowadzi testy jednostkowe oraz integracyjne: wykrywa framework, trzyma się konwencji projektu i uruchamia pętlę poprawek.
  • 90write-tests
    Pisze testy jednostkowe i integracyjne dla funkcji, modułu, endpointu lub poprawki błędu w istniejącym frameworku testowym.
  • 100typescript-testing
    Pisze testy TypeScript w Jest lub Vitest: testy jednostkowe i integracyjne, mocki oraz pokrycie kodu.
  • 90mobile-testing
    Planuje testy aplikacji mobilnych: jednostkowe, widgetów, integracyjne, E2E, snapshoty i integrację z CI.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.