You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
================================================================================ CALL BY CONTRACT (CBC) JAVASCRIPT LIBRARY ================================================================================ A JavaScript library with function argument assertions, a function parser and assertion wrapper functionality. Include cbc.js or cbc.min.js for all CbC functionality. Visit https://github.com/knut
This is a basic test suite of various web technologies for the When Can I Use website. It is used to quickly test basic support for features in upcoming browsers, rather than any full support of the feature's specification. Results on this page generally match the results as they appear on the When Can I Use site, but may not always due to a variety of circumstances (test may pass but support is a
Sinon.JSってなんぞ テストに使うライブラリ スタブやモック、フェイクオブジェクトを提供する QUnitとかと組み合わせて使う 現在時刻が指定の期間内かチェックする関数 function isWithinDate(start, end) { var now = Date.now(); var start = +new Date(start); var end = +new Date(end); return start < now && now < end; } // こんな感じで使う isWithinDate('2012/05/10', '2012/05/30'); //=> true
Yeti 0.2.14 works with more test frameworks, takes advantage of multiple browser instances, and contains many bugfixes. Happy Thanksgiving! Mocha, Jasmine, and better QUnit This release adds support for a few test frameworks and improves QUnit support. Yeti can now automate 4 test frameworks: Mocha Jasmine QUnit YUI Test Thanks for Ryan Seddon for making this happen! I was very happy to accept his
BDD Assert系のモジュールでchaiとexpect.jsを試した。機能はほぼ変わらないけどブラウザのサポートでけっこう差が出た。(ここでいう機能が変わらないってのはchai.expectと比較しての話し。chai.assertとかchai.shouldを考えると完全にchaiが高機能) https://github.com/logicalparadox/chai https://github.com/LearnBoost/expect.js chaiはIE8以下だとぴくりとも動かない。expect.prototype.instanceofとかって予約語をキーにしてるのでが主な原因かな(他にも原因いくつかあるっぽい)。なのでちょっと前のSafari(主にiOS4系)でもアウト。 IE9は動くのは動くけどテストがいくつかこけてる。expect.prototype.throwがバグってた
QUnit についておさらい"QUnit" とは、JavaScript 用のテストフレームのひとつである。 QUnit http://qunitjs.com 要点としては、QUnit の JavaScriptファイルとCSSファイル、テスト対象の JavaScript コードを収録した JavaScript ファイル、テストコードを収録した JavaScript ファイル、の以上4点を読み込む、所定の構造に従った HTML ファイル = テストハーネス HTML を用意しておき、このテストハーネス HTML を Web ブラウザーで開くことで、Web ブラウザーを一種のテストランナーとして、テストコードを実行する仕掛けだ。 例題たとえば、数値を円の金額表示に書式化する、下記のような JavaScript 関数を開発中だとする。 ※実際には、金額表示への書式化には、Globalization
Yeoman - Modern workflows for modern webapps Brunch | HTML5 application assembler 今回はニュートラルな気持ちで、並べて触ってみるのが目的なので、どっちが良い・悪い、という評価的な主張は重きを置いてない。(感想としては混じってるけど)淡々と記録しているだけなので、流し読んでいただければ幸い。 CompareTable Install Skeletons/BoilerPlate Scaffolding (generate/destroy) Build Server & Watch Test PackageManager Conclusion Compare Table とりあえず比較表。オリジナルから行列加えてる。 Original: Compare Table - Brunch | HTML5 applicat
こんにちは、中川です。 今回はJavaScriptで開発していると、うっかりハマってしまうちょっとした罠たちを紹介したいと思います。 JavaScriptでの開発経験者であれば、どれか一度はひっかかったことがあるのではないでしょうか? String ●String#replace()は文字列指定では全部置き換えない 対象文字列を一括して置き換えたいなどでString#replace()を使いますが、 検索対象を文字列で指定してしまうと最初に一致した部分しか置換しません。
この記事は賞味期限切れです。(更新から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に対応して
istanbul: A Javascript code coverage tool written in JS Yet another code coverage tool for Javascript, with the following features: All-javascript instrumentation library that tracks statement, branch, and function coverage and reverse-engineers line coverage with 100% fidelity. Module loader hooks to instrument code on the fly Command line tools to run node unit tests "with coverage turned on" an
Yeti 0.2.13 is more useful than ever with initial support for AJAX testing and the QUnit unit testing framework. AJAX testing Testing AJAX code requires a HTTP server. At YUI, Dav Glass wrote echoecho to provide routes for testing AJAX features. We use echoecho as a part of YUI’s build tools to make it possible for developers to test YUI IO without any additional dependencies like PHP or Apache. Y
If there is one feature compared to other JS framework that make AngularJS better, it is the ability to implement tests. This is normal I would say since the framework was developed by integrating this fundamental aspect at the beginning. JavaScript is a dynamically typed language which makes it easy to write but allows writing errors that the compiler will not see. It is therefore really importan
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が紹介されていますが、 ちょっと古くて設定が変わってる(一応キャプションで補足入ってる)のと分かりにくいので、その部分だけ抜き出して紹介します。
The document discusses the structure and functionality of a todo application built with Ruby on Rails, covering model validations, controller actions, and JSON responses for creating, updating, and deleting todos. It includes testing strategies using RSpec and Mocha, as well as JavaScript with libraries like Chai and Sinon for assertions and mocking. Additionally, it emphasizes using AJAX for dyna
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く