Skip to content
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

E2Eテストのカバレッジを計測する #5016

Merged
merged 10 commits into from
Jul 27, 2021

Conversation

nanasess
Copy link
Contributor

@nanasess nanasess commented Apr 15, 2021

概要(Overview・Refs Issue)

方針(Policy)

  • ユニットテストは phpdbg, E2Eテストは xdebug3 を使用する
  • ユニットテストとE2Eテストの JOB を並列で実行し、マージして codecov.io へアップロードする

実装に関する補足(Appendix)

  • localhost だと IPv6 で通信してしまい、無駄なリダイレクトが発生してカバレッジの取得が失敗するため IPv4 を使用する
  • ポップアップ系のテストは動作しないためカバレッジから除外

テスト(Test)

codecov.io にてカバレッジ計測できるのを確認

相談(Discussion)

問題なさそうであれば 4.1 にもマージしたい

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更
  • フックポイントの呼び出しタイミングの変更
  • フックポイントのパラメータの削除・データ型の変更
  • twigファイルに渡しているパラメータの削除・データ型の変更
  • Serviceクラスの公開関数の、引数の削除・データ型の変更
  • 入出力ファイル(CSVなど)のフォーマット変更

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか

@nanasess nanasess changed the base branch from 4.0 to 4.1 July 27, 2021 01:55
@codecov-commenter
Copy link

Codecov Report

Merging #5016 (ad5ae26) into 4.1 (b51348f) will decrease coverage by 7.55%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##                4.1    #5016      +/-   ##
============================================
- Coverage     75.63%   68.08%   -7.56%     
============================================
  Files           456      457       +1     
  Lines         21183    24972    +3789     
============================================
+ Hits          16022    17001     +979     
- Misses         5161     7971    +2810     
Flag Coverage Δ
tests 68.08% <ø> (-7.56%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Eccube/Form/Type/Admin/MailType.php 44.11% <0.00%> (-55.89%) ⬇️
src/Eccube/Form/Type/RepeatedEmailType.php 45.71% <0.00%> (-54.29%) ⬇️
src/Eccube/Form/Type/Admin/DeliveryType.php 46.57% <0.00%> (-53.43%) ⬇️
src/Eccube/Form/Type/KanaType.php 48.71% <0.00%> (-51.29%) ⬇️
src/Eccube/Form/Type/RepeatedPasswordType.php 50.00% <0.00%> (-50.00%) ⬇️
src/Eccube/Form/Type/Admin/ChangePasswordType.php 50.00% <0.00%> (-50.00%) ⬇️
src/Eccube/Form/Type/Admin/CsvImportType.php 51.85% <0.00%> (-48.15%) ⬇️
src/Eccube/Form/Type/Admin/ProductType.php 50.80% <0.00%> (-47.61%) ⬇️
src/Eccube/Form/Type/Admin/ClassCategoryType.php 52.94% <0.00%> (-47.06%) ⬇️
.../Eccube/Form/Type/Admin/SearchLoginHistoryType.php 53.33% <0.00%> (-46.67%) ⬇️
... and 260 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b51348f...ad5ae26. Read the comment docs.

@okazy
Copy link
Contributor

okazy commented Jul 27, 2021

カバレッジの確認方法メモ

  1. codecov-commenter の Continue to review full report at Codecov. をクリック

image

  1. Coverage Changes をクリック

image

  1. ファイル名をクリックすると差分が確認できる

image

image

Copy link
Contributor

@okazy okazy left a comment

Choose a reason for hiding this comment

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

ありがとうございます!問題ありません。

@okazy okazy added the improvement 機能改善 label Jul 27, 2021
@okazy okazy added this to the 4.1 milestone Jul 27, 2021
@okazy okazy merged commit c5de847 into EC-CUBE:4.1 Jul 27, 2021
@okazy
Copy link
Contributor

okazy commented Jul 27, 2021

ありがとうございます、マージしました。

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.

3 participants