Skip to content

[unit-tests] ユニットテスト補完: UnitCmd#892

Merged
7474 merged 2 commits intomasterfrom
unit-tests/unit-cmd-20260324-13da6c2b7dfce5c4
Mar 25, 2026
Merged

[unit-tests] ユニットテスト補完: UnitCmd#892
7474 merged 2 commits intomasterfrom
unit-tests/unit-cmd-20260324-13da6c2b7dfce5c4

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

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

追加したテスト / Tests Added

  • UnitCmd: 7件追加 (SRC.Sharp/SRCCoreTests/CmdDatas/UnitCmdMoreTests.cs)
テストメソッド 検証内容
UnitCmd_TooFewArgs_ReturnsError ランク省略時にエラー
UnitCmd_TooManyArgs_ReturnsError 余分な引数でエラー
UnitCmd_NonExistentUnit_ReturnsError 未登録ユニット名でエラー
UnitCmd_ValidUnit_CreatesUnitAsFriend 正常作成で NextID を返す
UnitCmd_ValidUnit_SetsSelectedUnitForEvent SelectedUnitForEvent にセットされる
UnitCmd_ValidUnit_UnitPartyIsFriend 所属が "味方" になる
UnitCmd_ValidUnit_WithNonZeroRank_SetsRank 指定ランクが正しく設定される

合計: 7件追加

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

  • テスト済み (既存): 全実装コマンドのうち UnitCmd 以外
  • 新規テスト追加: 1 コマンド (UnitCmd)
  • 未テスト (残り): ほぼ全コマンドに最低限のテストが存在。次回はより少ないカバレッジのコマンドに機能テストを追加予定

テスト結果 / Test Results

ベースライン: Passed 7181 → 追加後: Passed 7188, Failed: 0

次のステップ: 次回実行では機能テストが不十分なコマンド (RecoverHP, RecoverEN, ClearStatus, CombineCmd 等) の正常動作テストを追加

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.

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

UnitCmd (Unit ユニット名 ランク) のユニットテストが存在しなかったため追加。
ヘルプドキュメントの記載を期待値として7件のテストを作成:
- 引数不足 (ランク省略) でエラー
- 引数過多でエラー
- 存在しないユニット名でエラー
- 有効なユニットデータで正常終了 (NextID を返す)
- 有効なユニットデータで SelectedUnitForEvent が設定される
- 作成されたユニットの所属が '味方' になる
- ランク指定が正しくユニットに設定される

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@7474 7474 had a problem deploying to SRC#DataViewer dev March 24, 2026 14:00 — with GitHub Actions Failure
@github-actions github-actions bot mentioned this pull request Mar 25, 2026
@7474 7474 merged commit 20bda63 into master Mar 25, 2026
5 of 6 checks passed
@7474 7474 deleted the unit-tests/unit-cmd-20260324-13da6c2b7dfce5c4 branch March 25, 2026 22:53
@7474 7474 temporarily deployed to SRC#DataViewer dev March 25, 2026 22:53 — 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