1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

javascriptテストフレームワーク「jasmine(ジャスミン)」をダウンロードしてみた

Posted at

jasminとは

JasmineはJavascriptコードをテストするための振舞い駆動開発フレームワークです。 他のJavascriptフレームワークに依存しませんし、DOMも必要としません。 簡単にテストを書くことができるように、きれいで分かりやすい構文を持っています。
公式ページ(http://mitsuruog.github.io/jasmine/1.3/introduction.html)より。

今回ダウンロードしたverison

ファイル構成

  • 全体
    1.jpg

  • lib配下
    2.jpg

  • spec配下
    3.jpg

  • src配下
    4.jpg

各ファイルの意味(たぶん)

  • SpecRunner.htmlがテストランナー?
  • src配下にテストしたいスクリプトファイル
  • spec配下にテストケースのスクリプトファイル
    • PlayerSpec.jsがテストケースをきったスクリプトファイル
    • SpecHelper.jsがPlayerSpec.jsで呼ばれるヘルプスクリプトファイル
  • lib配下にテストに必要なスクリプトファイル

使えるメソッド的なもの/チュートリアル的な

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?