はじめに Django Restframework で開発したAPIに対するテストコードを作成する。 そのために必要なノウハウやパッケージなどについてまとめる。 サンプルコード こちらに作成したコードを参考に以下の話を進めていく。 sampleapp.tests 配下にテスト用のコードを作成している。 使用したライブラリ等 Pythonは3.8.x Django 3.0.x Django Restframework 3.11.x factory-boy 2.11.x pytest 4.0.x pytest-django 3.4.x テスト向けのライブラリ説明 factory-boy テストデータを簡単に作成するためのライブラリ。 https://factoryboy.readthedocs.io/en/latest/ https://github.com/FactoryBoy/factor
Automated vs. Manual Testing The good news is, you’ve probably already created a test without realizing it. Remember when you ran your application and used it for the first time? Did you check the features and experiment using them? That’s known as exploratory testing and is a form of manual testing. Exploratory testing is a form of testing that is done without a plan. In an exploratory test, you’
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く