Your source for the latest news, product updates, and industry insights
Your source for the latest news, product updates, and industry insights
JSVerify is a property-based testing library, highly inspired by QuickCheck. It is testing framework agnostic, you could use JSVerify with Mocha, nodeunit, Jasmine or any other framework. Property based testing Write properties about your function that should hold true for all inputs, instead of enumerating expected inputs and outputs. Tests written this way are concise and powerful. Property-base
BrowserStack とは BrowserStack とは、クロスブラウザ(OS含む)による動作確認を手軽に行える環境を提供しているサービスです。 例えば、BrowserStack 側のサーバで起動している各種ブラウザ環境を、こちらのブラウザから利用したりすることができます。 その中に Automate という、コードからその環境を利用できる仕組みがあり、今回はそれを Node.js から使ってみたいと思います。 当記事のゴール Travis CI 上で、 express アプリケーションを起動し、 mocha で書いたテストコードを使い、 BrowserStack Automate 環境で、 テストが出来ること。 BrowserStack アカウントを作成する まずはアカウントの作成が必要になるので、トップページ から道なりに登録してください。 メールアドレスとパスワードだけで登録で
JavaScript Advent Calendar 2014 11日目。 いきなり要約: Promiseや非同期テストのアサーションを簡単確実に書けるようになるesplanというライブラリのPoCを作った話。 Promiseや非同期のテストは難しい 詳しくはJavaScript Promiseの本: Chapter.3 Promiseのテストをご覧いただきたいのだが、Promiseのテストを正確に書くのはそんなに簡単ではない。 例えばmochaだと、 // 間違ったテスト1: // mayBeResolveWithOne() が1以外でresolveしたときタイムアウトエラーになる it("mayBeResolveWithOne()は1でresolveする", function(done) { mayBeResolveWithOne().then(function(value) { as
QUnit 2.xで変わること QUnit 2.xで変わること 現バージョン: QUnit 1.16.0 基本方針 2.0 では互換レイヤーを入れて互換性を維持 既存のメソッド名の変更もDeprecatedだが動く 2.1で互換レイヤーを破棄して完全に移行 詳しくは QUnit 2.x Upgrade Guide | QUnit を読む Try Own azu/qunit-examples 今回でてきたサンプルコード Avoid Global グローバルに合ったものがQunit.*に移動 // OLD Style module("module name"); test("old test", function (assert) { expect(1);// 1つのassertがあるという宣言 assert.ok(true); }); Avoid Global グローバルに合ったものがQun
This guide will assist you in upgrading from QUnit 1 to QUnit 2. Overview The QUnit 2 release only removes old methods. The “QUnit 2” methods were introduced as part of QUnit 1.x releases. If you are on QUnit 1.23, you can already migrate gradually, before making the jump. The old methods are removed in QUnit 2.0 and replaced with placeholder methods that throw descriptive errors to simplify migra
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く