Skip to content

[unit-tests] ユニットテスト補完: RecoverHP/EN/SP・LevelUp・ExpUp・IncreaseMorale コマンド#906

Merged
7474 merged 2 commits intomasterfrom
unit-tests/pilot-recover-cmd-execution-tests-20260328-288a5715366a5457
Apr 3, 2026
Merged

[unit-tests] ユニットテスト補完: RecoverHP/EN/SP・LevelUp・ExpUp・IncreaseMorale コマンド#906
7474 merged 2 commits intomasterfrom
unit-tests/pilot-recover-cmd-execution-tests-20260328-288a5715366a5457

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

🧪 ユニットテスト補完 レポート (2026-03-28)

追加したテスト / Tests Added

ファイル 追加件数 内容
UnitCombatCmdTests.cs 6件 RecoverHPCmd・RecoverENCmd 成功パス
PilotCmdExecutionTests.cs (新規) 11件 LevelUpCmd・ExpUpCmd・RecoverSPCmd・IncreaseMoraleCmd

合計: 17件追加

UnitCombatCmdTests.cs (RecoverHP/EN)

  • RecoverHPCmd_NullSelectedUnit_ReturnsNextId — 選択ユニットが null でもクラッシュしない
  • RecoverHPCmd_WithUnit_RecoveryIncreasesHP — 半HPから回復して MaxHP に達する
  • RecoverHPCmd_NegativeRate_HpDoesNotGoToZero — 大きなマイナス値でも HP は最小 1
  • RecoverENCmd_NullSelectedUnit_ReturnsNextId — null ユニットでも NextId を返す
  • RecoverENCmd_WithUnit_RecoveryIncreasesEN — EN 0 からの回復が正しく動作する
  • RecoverENCmd_NegativeRate_ENDoesNotGoBelowZero — EN はゼロ未満にならない

PilotCmdExecutionTests.cs (パイロット系コマンド)

  • LevelUpCmd_WithNamedPilot_IncreasesLevel — 指定パイロットのレベルが上がる
  • LevelUpCmd_WithNamedPilot_MultiLevelIncrease — 複数レベルまとめて上げられる
  • LevelUpCmd_WithNamedPilot_CapAt99 — レベル上限 99 が正しく機能する
  • LevelUpCmd_NonExistentPilot_ReturnsError
  • ExpUpCmd_WithNamedPilot_IncreasesExp — 経験値が加算される
  • ExpUpCmd_NonExistentPilot_ReturnsError
  • RecoverSPCmd_WithNamedPilot_SPDoesNotGoBelowZero — SP はゼロ未満にならない
  • RecoverSPCmd_WithNamedPilot_SPRecovery — 100% 回復で SP = MaxSP
  • RecoverSPCmd_NonExistentPilot_ReturnsError
  • IncreaseMoraleCmd_WithNamedPilot_IncreaseMorale — 気力が増加する
  • IncreaseMoraleCmd_NonExistentPilot_ReturnsError

カバレッジサマリー / Coverage Summary

  • テスト済み (既存): 183 コマンド中ほぼ全件 (エラーパスのみ)
  • 新規成功パステスト追加: RecoverHP/EN/SP, LevelUp, ExpUp, IncreaseMorale (6コマンド)
  • 未テスト (成功パスなし): RecoverPlana, SetBullet, SetStock, SetMessage 等 (ユニット/パイロットの複雑なセットアップが必要なもの)

齟齬の報告 / Discrepancies Found

  • なし / None

テスト結果 / Test Results

Passed! - Failed: 0, Passed: 7205, Skipped: 0, Total: 7205

次のステップ: RecoverPlana, SetBullet, SetStock, SetStatus 等の成功パステスト追加

Warning

⚠️ Firewall blocked 9 domains

The following domains were blocked by the firewall during workflow execution:

  • crl3.digicert.com
  • crl4.digicert.com
  • dc.services.visualstudio.com
  • ocsp.digicert.com
  • s.symcb.com
  • s.symcd.com
  • tscrl.ws.symantec.com
  • tsocsp.ws.symantec.com
  • www.microsoft.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "crl3.digicert.com"
    - "crl4.digicert.com"
    - "dc.services.visualstudio.com"
    - "ocsp.digicert.com"
    - "s.symcb.com"
    - "s.symcd.com"
    - "tscrl.ws.symantec.com"
    - "tsocsp.ws.symantec.com"
    - "www.microsoft.com"

See Network Configuration for more information.

Note

🔒 Integrity filtering filtered 1 item

Integrity filtering activated and filtered the following item during workflow execution.
This happens when a tool call accesses a resource that does not meet the required integrity or secrecy level of the workflow.

  • resource:search_pull_requests (search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)

Generated by ユニットテスト補完エージェント / Unit Test Completion Agent ·

RecoverHPCmd/RecoverENCmd/RecoverSPCmd/LevelUpCmd/ExpUpCmd/IncreaseMoraleCmd は
エラーハンドリングテストのみだったため、ヘルプドキュメントの記載を期待値として
成功パステストを追加。

追加テスト (17件):
UnitCombatCmdTests.cs (8件):
- RecoverHPCmd_NullSelectedUnit_ReturnsNextId
- RecoverHPCmd_WithUnit_RecoveryIncreasesHP
- RecoverHPCmd_NegativeRate_HpDoesNotGoToZero
- RecoverENCmd_NullSelectedUnit_ReturnsNextId
- RecoverENCmd_WithUnit_RecoveryIncreasesEN
- RecoverENCmd_NegativeRate_ENDoesNotGoBelowZero

PilotCmdExecutionTests.cs (新規ファイル, 9件):
- LevelUpCmd_WithNamedPilot_IncreasesLevel
- LevelUpCmd_WithNamedPilot_MultiLevelIncrease
- LevelUpCmd_WithNamedPilot_CapAt99
- LevelUpCmd_NonExistentPilot_ReturnsError
- ExpUpCmd_WithNamedPilot_IncreasesExp
- ExpUpCmd_NonExistentPilot_ReturnsError
- RecoverSPCmd_WithNamedPilot_SPDoesNotGoBelowZero
- RecoverSPCmd_WithNamedPilot_SPRecovery
- RecoverSPCmd_NonExistentPilot_ReturnsError
- IncreaseMoraleCmd_WithNamedPilot_IncreaseMorale
- IncreaseMoraleCmd_NonExistentPilot_ReturnsError

全テスト合計: 7205件 (7188 既存 + 17 新規)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@7474 7474 had a problem deploying to SRC#DataViewer dev March 28, 2026 13:47 — with GitHub Actions Failure
@github-actions github-actions Bot mentioned this pull request Mar 29, 2026
@7474 7474 merged commit 630cb91 into master Apr 3, 2026
5 of 6 checks passed
@7474 7474 deleted the unit-tests/pilot-recover-cmd-execution-tests-20260328-288a5715366a5457 branch April 3, 2026 16:24
@7474 7474 temporarily deployed to SRC#DataViewer dev April 3, 2026 16:24 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant