test-process-adapter

Generate MockK-based unit tests for Zeebe process out-adapter methods.

3|Updated Feb 6, 2025
One-click install
npx skills add https://github.com/emaarco/easy-zeebe --skill test-process-adapter
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-process-adapter
Source: https://github.com/emaarco/easy-zeebe/tree/main/.claude/skills/test-process-adapter
Command: npx skills add https://github.com/emaarco/easy-zeebe --skill test-process-adapter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of unit tests for Zeebe process out-adapters, ensuring reliable integration with the process engine.

Core Features & Use Cases

  • Automated Test Generation: Creates MockK-based unit tests for adapters interacting with Zeebe.
  • Method Coverage: Specifically targets startProcess, sendMessage, and sendSignal methods.
  • Use Case: When developing a new Zeebe process adapter, use this Skill to quickly generate the necessary unit tests, adhering to project-specific patterns and reducing manual testing effort.

Quick Start

Use the test-process-adapter skill to write unit tests for the adapter file located at src/main/kotlin/com/example/MyAdapter.kt.

Frequently Asked Questions about test-process-adapter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate unit tests for Zeebe process out-adapters?▼

To generate unit tests for Zeebe process out-adapters, you need to automate MockK-based test creation covering `startProcess`, `sendMessage`, and `sendSignal` methods. This approach uses `ProcessEngineApi` mocks to ensure deterministic testing of outbound service communication to the Zeebe engine.

What is the best way to mock the Zeebe ProcessEngineApi in Kotlin unit tests?▼

Mocking the Zeebe ProcessEngineApi in Kotlin unit tests is best handled using MockK to generate deterministic test scenarios. This technique targets outbound adapter methods like `startProcess` and `sendMessage`, ensuring reliable integration testing with the process engine without requiring a live Zeebe instance.

Can I test sendMessage and sendSignal methods in my Zeebe adapter automatically?▼

Yes, you can automatically test `sendMessage` and `sendSignal` methods in a Zeebe adapter. The automated generation creates MockK-based unit tests specifically covering these outbound communication methods, verifying deterministic interactions with the Zeebe process engine.

Do I need MockK to write Zeebe adapter unit tests?▼

Yes, MockK is required to write these Zeebe adapter unit tests. The generated tests rely on MockK to mock the `ProcessEngineApi`, enabling deterministic verification of outbound communication methods like `startProcess`, `sendMessage`, and `sendSignal` without connecting to a live Zeebe engine.

How to ensure my Zeebe adapter tests follow project-specific test patterns?▼

To ensure Zeebe adapter tests follow project-specific test patterns, the generated MockK unit tests require adherence to your existing project conventions. The generation targets deterministic testing of outbound communication, applying your specific patterns to `ProcessEngineApi` mocks for `startProcess`, `sendMessage`, and `sendSignal` methods.