Quantcast
Channel: TDD – Michael Grosser, the Blog
Browsing latest articles
Browse All 6 View Live

Image may be NSFW.
Clik here to view.

The Black White Tree Testing Method

TDD often is well understood, but seldom put to good use. Spikes grow larger, hard to test aspects are skipped and sooner or later your test coverage looks like this. . Therefore i want to show you...

View Article


Image may be NSFW.
Clik here to view.

Cucumber vs ActiveRecord 2.3 — Attempt to call private method (NoMethodError)

All of the sudden some columns began to misbehave in cucumber tests, claiming that “Attempt to call private method (NoMethodError)” on normal column attributes! A simple fix for this, essentially...

View Article


Image may be NSFW.
Clik here to view.

How Stop Autotest From Running After Each Failed Test Was Fixed

Autotest until recently only had one flaw: it could not be used for large test suites, since after each red-green cycle I had to wait x minutes for all tests to pass, which made autotest really...

View Article

Image may be NSFW.
Clik here to view.

How to Run Each Test or Spec One by One

On my new project we had the problem that some specs failed when ran on their own, and some specs produces strange output (like “use object_id”), so I build a helper that runs each test on its own and...

View Article

Image may be NSFW.
Clik here to view.

Omniauth / OAuth integration test with webmock

Took me a while to figure out all the stubs … maybe this is useful later :) I’m using this to test our facebook / twitter signup flows. def external_redirect(url) yield rescue...

View Article


Image may be NSFW.
Clik here to view.

Ruby Code Duplication Detection with Flay

Flay is terribly useful, but has terribly usability … If the repo was not such a mess I’d make PRs to fix it, but tests are not even runnable and PRs to make the Readme readabe got rejected … so I’m...

View Article
Browsing latest articles
Browse All 6 View Live