testing
59 posts · All topics
- — Executing Structured A.I. Workflows with Shopify Roast
Last week, my team at Shopify released a new tool called Roast, a convention-oriented framework for creating structured AI workflows. Our vision is to enable A.I. agents to solv...
- — Creating an OpenSearch Cluster with Dangling Indexes
I’ve previously written about the OpenSearch OpenAPI Specification and how it can be used to fix bugs in the OpenSearch documentation.
- — Fixing Bugs in the OpenSearch API Documentation using API Spec Tests
I’ve previously written about the OpenSearch OpenAPI Specification.
- — Asserting Existence with Mocha, Chai and TypeScript Strict Null Checks
I recently encountered a unit test that looked like this.
- — Very Slow MongoDB in Development and Test
MongoDB SERVER-24384 bit me.
- — How To Test Delayed Jobs
There are two ways to test delayed jobs under RSpec.
- — Passing Tests with Volkswagen
Volkswagen did a good job pioneering TDD. There’s now broad language and framework support.
- — ActionMailer Integration Testing with Email-Example-Spec
Introducing email-example-spec, integration testing for your ActionMailer e-mails.
- — Reorganizing CocoaPod Folder Structure for Unit and Integration Testing
My first CocoaPod described in this post sparked a discussion with the CocoaPods team. There are a few things I didn’t like about the project organization.
- — Mocking UIAlertView with OCMock
Let’s mock a UIAlertView with OCMock. Here’s a simple alert:
- — Custom RSpec Meta Tag Validator
I’ve written my share of RSpec tests that look for specific meta tags in a web page under Capybara. It would be nice to be able to spell the following.
- — Precompiling Rails Assets before RSpec/Capybara Integration Tests
The first Capybara integration test always tends to timeout when compiling assets on-demand. It’s just damn too slow. Precompile your assets before the test is run.
- — Building & Scaling a Test-Driven Culture @ AppNexus (Video)
I gave a talk last week at AppNexus on building and scaling a test-driven culture.
- — Should you use 'Should' in RSpec Examples?
There are two kinds of developers: those who use should in RSpec examples and those who use present tense.
- — TaxCloud: SOAP Service Integration in Ruby
- — The Safety Net: Removing Barriers to Test Automation
- — AgileDC 2012: Taming the Testing Beast
Slides from my talk from #AgileDC 2012 here.
- — JNA 3.5.0 Released
- — How do I get the name of an object's type in JavaScript?
I love reflection, especially the Ruby kind. JavaScript reflection, though, can exhibit interesting runtime behavior.
- — 5 Ways to Avoid Feature Branches
- — RSpec-Rerun Gem
I just published a new gem: rspec-rerun. It’s a packaged solution to rerunning failed RSpec tests. See README for details.
- — Community MSI Extensions 1.3 Released
https://dblock.github.io/msiext/
- — ResourceLib 1.3 Released
I’ve released ResourceLib 1.3.
- — Avoiding Production Disasters and The Value of Patience in Software Development
I am not a patient person. But years of software practice have taught me how to take my time while coding or how to, otherwise, remove time from the equation.
- — Github Hacked: Things to Do on Monday
You should take a serious look at your application and write some tests, first thing Monday.
- — Grape API Mounted on RACK w/ Static Pages, Tests, JQuery UI, Backbone.js and Even Mongo
Expanding from my previous post on a Grape API mounted on RACK.
- — Don't Hate UI Testing - Reliably Testing Asynchronous UI w/ RSpec & Capybara
- — Testing w/ Analytical Gem and RSpec
We use the Analytical gem to include various thirdparty Javascript in our Rails application. Our test environment was configured with dummy values in config/analytical.yml.
- — Warning: Toplevel Constant XYZ Referenced Admin:XYZ
I posted this to a Ruby forum a while ago.
- — Fabricating Spec Failures
I love fabricators. We use the awesome fabrication gem that lets you do some pretty neat things in Rails specs.
- — NoRails: Application Design in Times of APIs
A recent post “Rails is Not Your Application” caught my attention. It was fundamentally right, but the suggested implementation was misguided.
- — Capybara: Failed to Resynchronize, Ajax Request Timed Out (not caused by green elves)
I used to attribute this error to little green elves inside of Capybara, Selenium or Firefox. But, as usual, things turn out to have a much more reasonable explanation.
- — IE9: Cache-Busting with Grape Middleware
Ran into a series of weird bugs with IE9. Turned out that a lot of our API requests were cached on the client. I am not sure whether this is some clever plot to make things work...
- — Permission denied - /var/tmp/ruby-uuid
I’ve been fighting a trivial RoR controller test failure on a new build machine. The spec is rather trivial.
- — Unable to Obtain Stable Firefox Connection in 60 seconds: Downgrading Firefox on Ubuntu
- — RSpec: Fuubar + Breaking Tests into Suites
Inspired by this post on RSpec best practices and updated for RSpec2.
- — Selecting items from a dropdown with Capybara, Selenium (Firefox) & JQuery
I am having a weird problem with Capybara and Selenium (Firefox) selecting items in a dropdown.
- — Modularizing a RoR Grape API: Multiple Versions
We made some progress with modularizing our Grape API in the last post. But we only had one version and declared Api_v1 as our main API entry. Unless you’re Netflix and need an ...
- — RSpec + Capybara Don't Return a Proper Exit Code
We’ve been trying to fix an issue with our continuous integration where Capybara tests were failing, but the CI process reported success. Rather annoying for CI!
- — How we Upgraded a Live Site in the Middle of Demo (and Didn't Die of a Heart Attack)
- — Ruby: Unlearning OOP and Embracing Anarchy
- — kernel.rb:27:in `should': uninitialized constant RSpec::Expectations::PositiveExpectationHandler (NameError)
This one took a while and required extensive help from a rocket scientist. While running RSpec I got this.
- — MSI: This installation is forbidden by system policy.
I ran into the infamous “this installation is forbidden by system policy” error message this morning while trying to fix the MsiExt build on a new Windows 2003 64-bit build mach...
- — MSBuild: Setting Up a Build Environment w/ NUnit
- — VMWare ESXi 4.1.0 Automation: Insufficient permissions in host operating system
One of our servers was upgraded to VMWare ESXi 4.1.0 and automation that uses RemoteInstall (and VMWareTasks) broke. The first part was easy, we needed to download and install t...
- — RemoteInstall in ThisWeekInTest.tv
One of my projects, RemoteInstall, was mentioned in ThisWeekInTest.tv, episode 2. It’s a recorded discussion between Ariel Raunstein and Roy Osherove on the subject of test. Roy...
- — RemoteInstall Test Framework 1.2 Released
I’ve released the RemoteInstaller Test Framework 1.2. It’s the second open-source release, and I am pleased to see some community adoption. RemoteInstall is a system for automat...
- — Code Coverage with EMMA
- — MSIOpenPackage on Windows 7: behavior changed
I was very happy upgrading to Windows 7. Virtually everything worked. All kinds of source code that I am writing compiles and runs without issues. It’s only a week later that I ...
- — Locating UI controls and clicking through menus with System.Windows.Automation and White
In a previous post I had implemented clicking through menus with White. Someone pointed out that this was a solved problem and I didn’t need to write any code.
- — Automating Win32 UI Testing: System.Windows.Automation and Project White
Just when I thought things were well under control in dotNetInstaller, someone filed this bug. It basically says that an installed check doesn’t work. This is pretty major funct...
- — RemoteInstall: supporting reboots between installers
We’ve recently upgraded the Visual Studio 2005 SP1 C++ Redistributable to a newer version with the ATL security update. We quickly found that the installer requires a reboot in ...
- — AppSecInc. MSI Experience
A couple of years ago we used to have a really big problem with Windows installers. We had one guy writing InstallShield installers and a bunch of components thrown at him with ...
- — RemoteInstall Test Framework Open-Sourced
I am pleased to announce the open sourcing of the RemoteInstall Test Framework.
- — dotNetInstaller Setup Bootstrapper 1.7 Ships
I shipped dotNetInstaller 1.7 yesterday. Download it here. You can see the long list of what’s new on the release page, but that’s not the topic of my post.
- — The Duct Tape Programmer by Joel Spolsky
Someone forwarded me Joel Spolsky’s article, The Duct Tape Programmer. I think Joel must have been a manager for far too long.
- — Announcing the VMWare Tasks Library
- — Remote Control, Copy and Run programs on a VMware Workstation or VI server using VIX APIs
I’ve been playing with VMware lately, both Workstation and VMware Infrastructure (VI). The company has really stepped up with the new SDKs and the level of programmable interfac...
- — Unit Testing MSI Custom Actions
Prologue
