This project includes a console runner to facilitate running tests from console hosts. I understand that some folks at Mozilla rely onit in some capacity (@tschneidereit may be able to give more detail), and the V8 team uses some ofits internals in their ownPython-based runner. TC-39 agreed to deprecate the runner in 2014. This decision wasn't well-communicated, so there was some contention a f
Contentsunittest を効果的に使うための覚書 目的 ルール: テスト対象のモジュール(module-under-test)をテストモジュールに直接importしない ガイドライン: モジュールスコープでの依存を最小限にする ルール: 各テストメソッドでは、1つの事実だけを確認する ルール: テストメソッドは内容を表すようにしよう ガイドライン: setupはヘルパーメソッドで提供しよう。テストケースのselfで共有するのはやめよう。 ガイドライン: フィクスチャは可能な限り簡潔に ガイドライン: フックやレジストリなどの利用は注意深く ガイドライン: 依存関係を明確にするためにモックを利用する ルール: テストモジュール間でテキストを共有しない まとめ https://twitter.com/tokibito/status/412074246026698753 ということで
これまで Firefox拡張機能のテストをどうやって書くのがいいかずっと悩んでいたのですが (悩みつつも QUnit を使ってテストを書いていました)、このあいだ MozMill というのを見つけて、使ってみたらなかなか良かったので紹介します。 MozMill とは MozMill は Mozilla 製品 (Firefox や Thunderbird などの Gecko ベースのアプリケーション) の自動テストを書くためのテスティングフレームワークです。 MDN のドキュメントには拡張機能としてインストールすることも、コマンドラインツールとしてインストールすることもできると書かれていますが、拡張機能は Mozilla Add-ons から削除されてしまっているようでした。 MozMill は Firefox 自体のテストにも使われているということですが、Firefox拡張機能のテスト
単体テストガイドライン¶ Pylonsプロジェクトは、このドキュメントの元となった Tres Seaver によって書かれた AvoidingTemptation:Notes on usingunittest effectively に倣ったユニットテスト教義をかなり厳格に守っています。Note このドキュメントは、ほとんど排他的に 単体 テストを扱います。 結合テストまたは機能テストに対しては私たちは特別の教義を持っていません。 しかし、下記の tips の多くはその文脈でも再利用できます。 悪い単体テストを避けるための tips¶ ある人々は “don’t repeat yourself” をむやみに信じてきました (drink the KoolAid): 私たちは、ほとんどの場合にはコードの繰り返しをしないことが 美徳であることに同意します。しかし、単体テストコードはその例
jDoctest¶ jDoctest is an useful test library forJavaScript that was inspired byPython‘s doctest module.It finds testable examples within yourJavaScript files and checks if each example runs successfully. No more you need separated test files or documentation files. You only need a single file which contains an executable source code, documentations, and testable examples. Browser Support¶ jDoc
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く