Archive For The “Javascript” Category

Running Mocha browser tests in TeamCity

Mocha is a great javascript testing framework that supports TeamCity out-of-the-box for testing node.js-based apps on your build server. Here’s a quick guide on how to get it running in TeamCity for browser-based apps as well. Configuring Mocha’s TeamCity reporter First we need to configure Mocha to emit specially formatted messages to console.log() that TeamCity […]

Read more »

Parallel vs serial javascript async tests

If you’re writing tests for a javascript web application, sooner or later you’ll need to be aware of whether you are using a parallel or serial test runner. Parallel Serial How it works Start all async tests at once and wait until they have all completed. Wait for each test to complete before starting the […]

Read more »

Mini book review: Recipes With Backbone

Disclaimer: this is my first-ever book review on this blog! I’m not a javascript/HTML developer by trade so it’s not going to be a critical review or anything — just how I found reading it. I’ve worked on a few web applications over the years, and I’m familiar with at least a couple of other […]

Read more »

jQuery: checkboxes that remember their original state

Last week I had to write a little javascript for a form that involved a long list of check boxes. To save time, the application only processes rows where the checkbox value actually changed away from its original state. For example, if a checkbox was checked to begin with, then the user unchecks it then […]

Read more »

The marvel of externally-hosted javascript and CSS

Before: After: My app is now using Google and Yahoo’s content delivery networks (CDNs) to host most of its javascript and CSS files. This will improve client load times, and browsers can cache and share between all other sites that use them. Much better I think! Links: Serving YUI Files from Yahoo! Servers Developer’s Guide […]

Read more »