Tag Archives: testing

Test names and readability

What’s in a Name? It’s important to choose a useful name for a test. If tests are documentation, test names are the chapter headings. Test Names Should Not Include Should There’s nothing wrong with the word “should.” It’s just not … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Boilerplate karma.conf.js with karma init

I’ve worked on a number of Angular apps, but most of them were either set up by someone else or created using Yeoman or something similar. Earlier today I was trying to get Karma and Jasmine working so I could … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Easier Bisecting with Tests

You’ve probably used – or at least watched someone use – git bisect before. It’s a great way to track down which commit introduced a bug. It usually looks something like this: git bisect start git bisect good [ref before … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

How I Test Controllers

I’ve been trying to improve the specs I write lately. My method before was mostly copying and pasting from my past projects. Somewhere way back I adapted them from an early version of Michael Hartl’s Rails Tutorial, making various modifications … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment