gen-test
スター11
フォーク0
更新日2026年2月1日 02:20
Generate a pytest test following project conventions
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SKILL.md
readonlyメニュー
Generate a pytest test following project conventions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Run ruff linter and formatter on the project
Add observability (probes, trackers, charts) to a simulation
Analyze simulation results and provide insights
Help choose the right happysimulator components for a use case
Troubleshoot a broken or misbehaving simulation
Walk through a library example with detailed explanation
| name | gen-test |
| description | Generate a pytest test following project conventions |
| disable-model-invocation | true |
Create pytest tests following happy-simulator project conventions.
ConstantArrivalTimeProvider for deterministic timing in testsInstant.from_seconds() for time valuesInstant.Epoch for time zero, Instant.Infinity for auto-terminationtests/unit/tests/integration/test_<feature>.pytest_<scenario>()import pytest
from happysimulator import Simulation, Event, Instant
from happysimulator.load import Source, ConstantArrivalTimeProvider
def test_example_scenario():
"""Test description explaining what behavior is verified."""
# Arrange
sim = Simulation(end_time=Instant.from_seconds(10))
# Act
sim.run()
# Assert
assert expected_condition
pytest tests/<path> -q to verify it passes