Contents unittest を効果的に使うための覚書 目的 ルール: テスト対象のモジュール(module-under-test)をテストモジュールに直接importしない ガイドライン: モジュールスコープでの依存を最小限にする ルール: 各テストメソッドでは、1つの事実だけを確認する ルール: テストメソッドは内容を表すようにしよう ガイドライン: setupはヘルパーメソッドで提供しよう。テストケースのselfで共有するのはやめよう。 ガイドライン: フィクスチャは可能な限り簡潔に ガイドライン: フックやレジストリなどの利用は注意深く ガイドライン: 依存関係を明確にするためにモックを利用する ルール: テストモジュール間でテキストを共有しない まとめ https://twitter.com/tokibito/status/412074246026698753 ということで
Unit testing guidelines The Pylons Project rather rigorously follows a unit testing dogma along the lines described by Tres Seaver in Avoiding Temptation: Notes on using unittest effectively. This document is based upon that article. This document deals almost exclusively with unit tests. We have no particular dogma for integration tests or functional tests, although many of the tips below can be
Goals The goals of the kind of testing outlined here are simplicity, loose or no coupling, and speed: Tests should be as simple as possible, while exercising the application- under-test (AUT) completely. Tests should run as quickly as possible, to encourage running them frequently. Tests should avoid coupling with other tests, or with parts of the AUT which they are not responsible for testing. De
コンテンツへスキップ 無料で使える!HubSpotの顧客リストの活用法無料のアンケート作成ツール 比較/まとめ無料「Excel」 テンプレート 比較/まとめ無料で使えるノートアプリ比較 (Evernote / OneNote / Google Keep)おすすめの無料Web会議システム5選WebP Converter 徹底解説!初心者でも直ぐに使えるサイトで使える無料素材 比較/まとめフリーアイコンWebサービスの比較/まとめ無料オンラインスキャン 比較/まとめ無料でビジネスチャット、Web会議、スケジュール管理ができるグループウェアおすすめ無料レンタルサーバーの比較無料ストレージサービス 比較/まとめ無料ホームページ WordPress・Wix・Jimdo 比較おすすめの無料WordPressテーマテンプレート無料Webセキュリティチェックサービス無料で使えるおすすめのタスク管理ツール
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く