The fundamentals of testing

A Blog Post by

This is the summary and notes from my talk at the JHB Drupal meetup this this month. It’s the first of a 3 part talk I’m doing on testing.

This is a very top level view of the concepts behind testing your code, as language/framework agnostic possible.

The Joke.

Developer: There is no I in TEAM

Tester: We cannot spell BUGS without U

Created: Thu, 13/02/2014 - 16:49

Debugging the Drupal cron

A Blog Post by

Debugging the Drupal cron can be a pain. I covered a few techniques in the Drupal debugging like a pro post, but I wanted to focus on cron specifically for this one.

So you have a site and the cron gets stuck and you get error messages like these:

  • "Attempting to re-run cron while it is already running."
  • "Cron run failed."
  • "Cron run exceeded the time limit and was aborted."

Now first things first.. you need to unstick the cron if it's stuck. You can do this by removing the cron semaphore variable in the database.

Created: Tue, 09/10/2012 - 17:16

Getting AngularJS to work within a Drupal install

A Blog Post by

To embed AngularJS (1.0.1) in a Drupal (6.x) site won't work out of the box. To get AngularJS to function you need to upgrade your jQuery to the latest 1.7.x version as the packaged jQuery and jquery update (1.3.2) will break AngularJS.

Now for the solution:
1. Install the latest dev version of jQuery Update and make your default jQuery 1.7.
This That removed some errors but didn't quite cut it.

Created: Mon, 30/07/2012 - 18:47

Drupal debugging like a pro

A Blog Post by
Drupal debugging like a pro

It is one of the most tedious and annoying parts of development, and if you can learn to do it effectively you can save yourself hours or even days of work.. and even a grey hair or two.

Effective debugging is often a neglected subject in development courses and you usually end up finding creative ways to search for pesky errors. I'll start off by covering a few debugging techniques.

Created: Wed, 23/05/2012 - 17:13