Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

test-process-adapter

/test-process-adapter

Pisze test jednostkowy metody adaptera procesu i sprawdza komendę silnika: nazwę procesu, wiadomości, sygnał, korelację i zmienne.

Repozytorium
bpmn-to-code ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 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ść35 / 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
9
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.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 test jednostkowy metody adaptera procesu i sprawdza komendę silnika: nazwę procesu, wiadomości, sygnał, korelację i zmienne.

Argumenty

/test-process-adapter <adapter class>[#method]
Oryginalny opis (EN)

Writes the unit test for one process adapter method and asserts the engine command: process, message or signal name, correlation and variables. Use when testing a process adapter or after create-process-adapter.

Jak działa

  1. IMPORTANT
  2. Step 1: Find the method
  3. Step 2: Detect the stack
  4. Step 3: Cover these cases
  5. Step 4: Run it
Sekcje z nagłówków SKILL.md, w oryginale · 43 linii, 271 słów
Podgląd SKILL.md
---
name: test-process-adapter
description: "Writes the unit test for one process adapter method and asserts the engine command: process, message or signal name, correlation and variables. Use when testing a process adapter or after create-process-adapter."
argument-hint: "<adapter class>[#method]"
allowed-tools: Read, Write, Edit, Glob, Grep, Bash(./gradlew *), Bash(mvn *), Bash(./mvnw *)
---

# Skill: test-process-adapter

Test one outbound call in isolation. Mock or stub the engine client and run no engine. The engine-specific test shape lives in `resources/`.

## IMPORTANT

- Expect the **generated names** (`PROCESS_ID`, `Messages.X.value`, `Signals.X.value`, `FlowNodes.<Node>.Variables.X.value`), never string literals.
- **Assert the whole command**, not just that a method was called:
  - process or message name
  - correlation key or business key
  - every variable
- **Follow the project's existing test conventions first.** Fall back to the resource:
  - **Kotlin:** backtick names, `underTest`, MockK, `confirmVerified`
  - **Java:** `@DisplayName`, Mockito, `verifyNoMoreInteractions`

## Step 1: Find the method

Resolve `$ARGUMENTS` to the adapter and the method under test. If no method is given, test every public method that has no test yet, one test each.

## Step 2: Detect the stack

Pick the style from the adapter's dependencies:

| Adapter uses | Style |
|---|---|
| `StartProcessApi`, `CorrelationApi`, `SignalApi`, `UserTaskCompletionApi` | `process-engine-api` |
| a generated engine REST client (`MessageApi`, `TaskApi`, …) | `c7-external-task` |
| `RuntimeService` / `TaskService` | `c7-delegate` |
| `CamundaClient` / `ZeebeClient` | `zeebe` |

Then read `resources/<style>-<kotlin|java>.md`, for example [resources/zeebe-kotlin.md](resources/zeebe-kotlin.md).

## Step 3: Cover these cases

1. **The command:** the expected engine command with the exact name, correlation and variables.
2. **Lookups:** for a user task completion, the task is found by its generated element id and the domain key. Add a test for "no open task" if the adapter handles it.
3. **Failures:** an engine failure reaches the caller, as an exception the adapter documents. It is not swallowed.

## Step 4: Run it

Run only this test: `./gradlew test --tests '<TestClass>'` or `./mvnw test -Dtest=<TestClass>`.
Pliki w paczce (9)
  • SKILL.md 2 KB
  • resources/c7-delegate-java.md 6 KB
  • resources/c7-delegate-kotlin.md 5 KB
  • resources/c7-external-task-java.md 5 KB
  • resources/c7-external-task-kotlin.md 5 KB
  • resources/process-engine-api-java.md 6 KB
  • resources/process-engine-api-kotlin.md 5 KB
  • resources/zeebe-java.md 6 KB
  • resources/zeebe-kotlin.md 5 KB

Wersje

W bazie nie ma innych skilli o nazwie test-process-adapter.

Migawka bazy z 28.10.2026 · wersja paczki c30ba01bbd3d (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

  • 100create-process-adapter
    Dodaje wywołanie aplikacji do silnika procesów (start procesu, korelacja komunikatu, sygnał, zakończenie zadania użytkownika) jako port wychodzący i metodę adaptera procesu BPMN.
  • 100test-process
    Pisze test procesu BPMN na silniku testowym: sprawdza przebytą ścieżkę jako typowany obiekt, również dla bramek, zdarzeń granicznych i timerów.
  • 100create-adapter
    Prowadzi przez budowę adaptera USP dla LimaCharlie: badanie źródła, kopiowanie najbliższego adaptera, testy z mockiem, opcjonalny test na żywo i pull request z dokumentacją.
  • 100add-adapter
    Opisuje, jak dodać pakiet adaptera szablonów BarefootJS dla nowego silnika szablonów lub języka backendu, z portowaniem helperów oraz podpięciem do testów zgodności, CI, wydań i dokumentacji.
  • 100camunda-process-test
    Planuje, pisze i uruchamia zestawy testów Camunda Process Test (scenariusze .test.json lub Java) z Maven, obejmujące wszystkie ścieżki, błędy i timeouty procesu przed wdrożeniem lub po zmianie.
  • 95create-agent-adapter
    Tworzy i modyfikuje adaptery agentów Paperclip w warstwach serwera, UI i CLI, przy dodawaniu obsługi nowego agenta CLI, API lub własnego procesu.

Uwagi i zgłoszenia

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