Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode

この記事は賞味期限切れです。(更新から1年が経過しています) JavaScriptユニットテスト一年生の私が、Nettuts+ のチュートリアルで知ったテストツール 「testem」のお陰で大変捗ったので是非お勧めしたく、ここで紹介してみます。 testem ってなに testem via GitHub : airportyh/testem Unit testing in Javascript can be tedious and painful, but Testem makes it so easy that you will actually want to write tests. 要するに、面倒なJSのユニットテストをより快適にしてみんなでハッピーにテスト書こうよ!というツールです。 testem自体はnode.jsベースで動作し、Jasmine/QUnit/Mochaに対応して
AngularJSで使われてるTestacularではWebStormからテストを実行してデバッグする事を想定した作りになっています。 (AngularJS自体もJetBrains Plugin Repository :: AngularJSプラグインがあります) Testacular – Spectacular Test Runner for JavaScript WebStorm Testacular Documentation — Testacular 0.2.1 documentation 公式のデモ動画(Testacular – JavaScript Test Runner – YouTube)でもWebStorm Integrationが紹介されていますが、 ちょっと古くて設定が変わってる(一応キャプションで補足入ってる)のと分かりにくいので、その部分だけ抜き出して紹介します。
JavaScriptのユニットテストは2年ほど前にQUnitから入って、最近はもっぱらJasmineを利用していました。近年のJavaScriptテスト関連情報をまとめたいなと思い、改めてQUnit最新Version1.10.0のドキュメントとソースを読んで仕様を把握して資料にまとめてみました。 Qunit1.10.0 from Koji Nakamura サーバーサイドJSを開発する時にQUnitを採用する選択肢は僕の中ではないのですが、ブラウザJSを開発する時にはこのシンプルさと導入のしやすさはやはり利点だなと再認識した次第です。
We are now 100% relying on @testacularjs. Finally! plus.google.com/11032358723052…— AngularJS (@angularjs) October 18, 2012 Vojta Jina created Testacular (GitHub: vojtajina / testacular, License: MIT, npm: testacular) to write better tests for AngularJS, Google’s client-side library that’s rapidly gaining support from the wider web development community. While established projects like Selenium ar
こんにちは!うきょーです。 突然LTすることになったので、最近気になってるBuster.JSネタで話してきました。 LTなのであんまり内容は濃くないです。iPhoneシュミレーターとかでも楽に動くし便利だね!というくらいです。 スライドにはほとんど情報がないので、どんな感じで話したかを箇条書きで。 yaakaito.orgが変なところに飛ばされとる (今はなおったみたい) みんなJSかきますよね!テストやってますか??? フレームワークいろいろありますが、最近はBuster.JSがアツい JSTestDriverのようにブラウザ上での自動実行と、ヘッドレスでの実行がサポートされている “Test-Driven JavaScript Development”でも言及されていますが、実際の環境で動かせることは大事 ちなみにこの本書いた人がBuster.JSの作者で、Buster.JSはこの本に
Yeti 0.2.12 is the first Yeti release to integrate into Jenkins with new support for JUnit XML output. We have just begun using Yeti to test YUI inside Jenkins. When the JUnit XML output is given to Jenkins, we get this nice shared copy of test results that’s available for the entire team to view. It’s broken down by browser and test file for easy navigation. We’re using this today to automate tes
SinonJSDoc 1.0 Welcome to Sinon.JS Documentation.¶ Contents:¶ 各Sinon.JSファイル¶ sinon.js sinon/spy.js sinon/stub.js sinon/mock.js sinon/collection.js sinon/assert.js sinon/sandbox.js sinon/test.js sinon/test_case.js sinon/match.js sinon/util/event.js sinon/util/fake_server.js sinon/util/fake_server_with_clock.js sinon/util/fake_timers.js sinon/util/fake_xml_http_request.js sinon/util/timers_ie.js sin
Russell Power provides software engineering examples and advice for the exploration-explotation dilemma: How much energy should we invest into getting “just this next bug fixed and working” versus taking a sip of tea and then you should change your approach or change your job? Mayor Matt Mahan wants to end homelessness in San Jose neighborhood by neighborhood. When it comes to my proposal that we
状況はかなり改善した 非同期、setTimeout, Ajax系はSinonJSで簡単に Swarm系のツールでDOMのテストも容易に 環境構築も非常に楽になった PhantomJSはバイナリもあるし、ビルドも簡単 Swarm系のツールならブラウザでURLへアクセスすればすぐテスト開始
インタラクティブにテストを実行できるの目的として上げてるテスティングフレームワークのtestemがリリースされた。 機能としてはJsTestDriverやBuster.JSのようにサーバをたちあげてブラウザでキャプチャURLにアクセスして実行させる仕組みや、テストの構文も既存のJasmine(デフォルト)やQUnitやMochaと言ったものがアダプタ的に使えるようになっていて、ファイルを保存したら自動でテストを実行して結果をCLIに表示したり、testem ciを使うことでTAP形式で出力することもできる。 機能としては目新しい感じはしないけど、使い始めてテストを書き始めるまでの短さやテストを書いてすぐその結果が見えるところに作者の意図があるテストフレームワークなのかなと思いました。 実際にtestemを使うには、インストールしてtestemを実行してテストを保存するだけ。 $ npm i
なぜ「テストを書く理由」が重要なのか テストもプログラムの一部 ただし、直接は機能を追加しない しかも、メンテナンスコストは高い
Bunyip: client-side unit testing made easy Let’s face it doing thorough client-side unit testing fills me with rage, throw mobile browsers into the mix and I want to start flipping tables. There are tools out there to somewhat tackle this issue but they either require painful setups or want you to rewrite your unit tests using their framework. What if I told you there’s a tool that is easy to get
ここでは以下の順番でSinonJSとJsTestDriverを使用したJavaScriptのUnitTest Patternsを紹介します。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く