원클릭으로
runparity
Run Java/Rust parity tests from the regression suite or custom configurations
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run Java/Rust parity tests from the regression suite or custom configurations
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | runparity |
| description | Run Java/Rust parity tests from the regression suite or custom configurations |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","workflow":"testing"} |
manabrew-rs/crates/parity/regression.jsonUse this when:
Always run this before any parity test. The script computes a SHA-256 checksum of all Java source files and pom.xml files across the 5 modules the harness depends on (forge-core, forge-game, forge-ai, forge-gui, forge-harness) and compares against a stored checksum. If anything changed (or the JAR doesn't exist, or no stored checksum is found), it rebuilds automatically.
node scripts/harness.mjs ensure
This will either print harness: JAR is up-to-date (no rebuild needed) or harness: rebuilding JAR... followed by harness: rebuild complete on success. Use a 300000ms timeout for this command since Maven builds can take several minutes.
If the rebuild fails, stop and report the Maven error to the user. Do not proceed to run parity tests with a stale JAR.
To check staleness without rebuilding (useful for diagnostics):
node scripts/harness.mjs check
# exit 0 = up-to-date, exit 1 = stale/missing
/runparity keyword_advanced), run that named test with yarn parity <test-name>./runparity --deck1 red_burn --deck2 green_stompy --seed 42), run yarn parity:test <args>.manabrew-rs/crates/parity/regression.json and run each entry sequentially with yarn parity <name>. Use a 300000ms timeout per test.Named regression test:
yarn parity <test-name>
Custom parity test (passes args directly to the parity binary):
yarn parity:test <args>
Common custom flags: --deck1, --deck2, --seed, --games, --max-turns, --matrix, --seeds, --decks.
When a test fails, briefly explain the likely cause based on the divergence pattern:
The Rust engine must compile. If it doesn't, run cargo check -p parity and fix errors first.
The Java harness rebuild is handled automatically by scripts/harness.mjs (see Step 1). You should never need to manually run mvn package.
scripts/harness.mjsmanabrew-rs/crates/parity/regression.jsonscripts/parity.mjsmanabrew-rs/crates/parity/src/main.rssrc-tauri/src/game_manager.rsThese are the directories that harness.mjs monitors for changes:
forge/forge-core/src/ -- core card definitions, rules primitivesforge/forge-game/src/ -- full game engineforge/forge-ai/src/ -- AI decision logicforge/forge-gui/src/ -- GUI base classes, asset resolutionforge-harness/src/ -- harness entry point, JSONL protocol, deterministic controllers