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