-
Notifications
You must be signed in to change notification settings - Fork 0
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
テストコードをmockitoを使うように変更 #8
Comments
pixivのAPIへ実際にアクセスするテストはMockClientを使ったものに変更済み。 |
Dart公式からリリースされていてるmockito パッケージを使った方がいいかも。 |
公式のチュートリアル(Flutetr) 使い方の記事 |
今はURLからファイル名へ変換してレスポンスを取得しているけど、パラメータなどに対応できないから公式のチュートリアルみたいにする。(そもそもmockitoでそんなことができるか知らないけど) |
今までのようにURLをテスト用リソースのパスに変換して参照する形より、パスを直接書くほうが分かりやすいのでそうする。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
概要
現在、ApiClientのテストは実際にAPIへアクセスしているが、MockClientに変更する。
理由など
The text was updated successfully, but these errors were encountered: