10000 受け入れテスト実装 by contour-gara · Pull Request #3 · contour-gara/refactoring-java · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

受け入れテスト実装 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2024
Merged

受け入れテスト実装 #3

merged 1 commit into from
May 14, 2024

Conversation

contour-gara
Copy link
Owner

受け入れテストを実装しました。
テスト内容は以下のとおりです。

  • 全テストケース
    • ログの総数を確認してアサーション
    • すべて INFO ログであることをアサーション
  • 自動販売機プログラムを起動してすぐ終了した場合
    • 初期の投入金額が 0 であることのアサーション
    • 起動時と終了時のログのアサーション
  • 自動販売機プログラムを起動してコインを 1 度入れて何かを買おうとした場合
    • コーラを買う場合、購入できて 0 円になることをアサーション
    • お茶は上と同様
    • レッドブルの場合、購入できずに 100 円のままであることをアサーション
  • 自動販売機プログラムを起動してコインを 2 度入れて何かを買おうとした場合
    • コーラを買う場合、購入できて 100 円になることをアサーション
    • レッドブルを買う場合、購入できて 0 円になることをアサーション

Copy link
Collaborator
@ShogoMiura ShogoMiura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとう

Copy link
Collaborator
@arakitakashi arakitakashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確認しました。テスト項目良いと思います。

@contour-gara contour-gara merged commit 8d25ee0 into main May 14, 2024
2 checks passed
@contour-gara contour-gara deleted the acceptance-test branch May 14, 2024 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0