"Software testing" is a term used to refer to a variety of methods, tools, and practices for verifying that a software application works, at many different levels. All of us in the web development industry do some sort of software testing (even if the testing we do is manual and ad hoc, e.g.: refreshing a webpage after making a change to ensure the code you just wrote works). In this blog post, I will attempt to discuss why you might want to move away from ad hoc testing to more-formal testing, try to dispel some myths about formal testing, and...
This post is a follow-up to last week's post, Conforming to coding standards with linters . As we learned last week, linters are tools that you can use to check if a file contains any syntax errors, and/or whether it conforms to coding standards. This blog post discusses how to ensure that linters get run automatically when you make a commit. If you find a better process, please blog about it and post a link in the comments! This tutorial assumes: You write or modify code, You have linters to run on your code, and, You use Git to manage...
A clothesdryer with a laundry basket sitting atop it.
At the the DrupalNorth code sprint , I spent some time chatting about code linters, and how to use them to ensure your code conforms to coding standards. So, I thought I'd share the process that works for me. If you find a better process, please blog about it and post a link in the comments! This tutorial assumes: You write or modify code in a language like PHP, JavaScript, CSS, Bash, etc. What is a linter? Simply put, a linter is a static analysis tool that you can run to ensure that your code is free from syntax and/or...
DrupalNorth 2015 sprinters sitting around a table, listening to Cottser
The inaugral Drupal North Regional Summit was a blast! The official Drupal North sprint was held on Sunday, June 28th, starting around 10am and ending at 4pm, in Ryerson University's Rogers Communication Centre Transmedia Zone. 21 attendees showed up from all over Canada, the United States, and even Costa Rica: Adam White from Upper Rapids , Alberto Rojas from Manatí , Chris Luckhardt , Claire Desbois from Floe design + technologies , Eric Jenkins from Digital Bridge Solutions , Jean-François Bohémier , Jeremy Knab , Jose Eduardo García Torres from Anexus IT , Kevin Newman from Digital Echidna , Martin...
I've often been asked how I generate both patches and interdiffs at the same time, because the instructions on drupal.org currently detail the two processes separately, and different documentation pages give different instructions. So, I thought I'd share the process that works for me, providing real-world examples from an issue that I've worked on . If you find a better process, please blog about it and post a link in the comments! This tutorial assumes that: You know what patchfiles are, You know how to use the command-line (the instructions should work in both *NIX and Windows), and, You have...
The Internationalization suite of modules do a pretty good job of making everything translatable in Drupal 7. But, if you're writing a module that stores its data outside variables or entities, you might notice a few gaps. On a recent project, I noticed that field display settings ( field formatter settings for those familiar with the Field API ) are not translatable by default. In many cases, this is fine because the field settings in core modules don't make sense to translate: for example, the number of characters to trim a summary at or the image style to use. Never...