IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
初めましてこんにちは。ソーシャルクライアント開発の tanabe と申します。 今回は?Sinon.JS を使った JavaScript のテスト方法を紹介したいと思います。 Sinon.JS って何? Sinon.JS はノルウェーのエンジニア Christian Johansen さんが書かれた、JavaScript 用のライブラリです。スタブやモック、フェイクオブジェクトの提供に特化していて、QUnit などのテスト用のフレームワークや実行環境に依存しない所が特徴です。Christian Johansen さんは?Test-Driven JavaScript Development の著者でもあり、こちらは近々翻訳版 が登場するようです。 では早速、Sinon.JS を使ったテスト手法をご紹介していきたいと思います。本稿ではテストフレームワークは QUnit を採用しています。 時間
What about unit tests It is for sure, a tendency. You will still hear a lot about unit tests and TDD. You want to be sure your new changes have not broken down any other thing you knew was working? So, unit tests is your answer. Some advantages: Find problems before releasing your code Run many test for each part of your project You don't need to remember each test to redo Find problems your ne
The document discusses testing JavaScript code. It covers why JavaScript is hard to test, how to make JavaScript more testable, and tools that can help with testing. Specifically, it notes that untestable JavaScript code is a major problem, provides examples of testable versus untestable code, and recommends using unit test frameworks like Jasmine along with functional test frameworks. It also rec
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く