Website and mobile testing at every stage of development The world relies on your code. Test on thousands of different device, browser, and OS configurations–anywhere, any time.
![Sauce Labs - Selenium-based Downloads,Hosting and Support](https://cdn-ak-scissors.b.st-hatena.com/image/square/acb4f51216221e8a243916b2359fb9ce88605aa3/height=288;version=1;width=512/https%3A%2F%2Fimages.ctfassets.net%2Fczwjnyf8a9ri%2FxUygCUIqhJdSJkrZNsHWq%2F5077798145a162432790e36ca689cfd1%2Fhero-vector-placeholder_2x.png)
Code Coverage of Jasmine Tests using Istanbul and Karma Oct 3, 2013 4 min read #esprima #istanbul #javascript #jstools #karma #phantomjs #web For modern web application development, having dozens of unit tests is not enough anymore. The actual code coverage of those tests would reveal if the application is thoroughly stressed or not. For tests written using the famous Jasmine test library, an easy
This is the first of a two part introduction on how to write testable Javascript UI code. The first article presents a sample application that contains several common anti-patterns and how these can be refactored to be more testable. The complete refactor is presented in the second article along with info on how to add a unit test suite and make use of mocks. Front end development comes with a set
インタラクティブにテストを実行できるの目的として上げてるテスティングフレームワークのtestemがリリースされた。 機能としてはJsTestDriverやBuster.JSのようにサーバをたちあげてブラウザでキャプチャURLにアクセスして実行させる仕組みや、テストの構文も既存のJasmine(デフォルト)やQUnitやMochaと言ったものがアダプタ的に使えるようになっていて、ファイルを保存したら自動でテストを実行して結果をCLIに表示したり、testem ciを使うことでTAP形式で出力することもできる。 機能としては目新しい感じはしないけど、使い始めてテストを書き始めるまでの短さやテストを書いてすぐその結果が見えるところに作者の意図があるテストフレームワークなのかなと思いました。 実際にtestemを使うには、インストールしてtestemを実行してテストを保存するだけ。 $ npm i
前回からの続きで。 DOMエミュレーションの戦略 一方で、本物のブラウザを使わずに何らかのJavaScript実行環境でDOMをエミュレートして、その上でテストを走らせよう、という戦略もある。 この分野の大御所はEnv.js(http://www.envjs.com/)ということになっているのだけど、Env.jsのイヤンなところは導入がめんどくさい所である。何がめんどくさいって、antでビルドしなくちゃいけない。テストのためにどの程度の環境構築コストをかけられるかは状況において違うだろうが、例えばJSをメインでやっているエンジニアが「ちょっとテスト環境整えたい」っていう時にantから入れて頑張るだろうか?Javaの経験や、こういうビルドツールの導入/利用の流れに慣れている人だと全然問題ないレベルなんだけど。 というわけで、Env.jsは結構力を入れて開発されたものではあるのだろうけど、僕に
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く