unit testing

now browsing by tag

 
 

Django Unit Testing with Mocks

Unit tests shouldn’t be treated like lesser code. It should be as clean as possible and don’t ever hesitate when it comes to refactoring the unit test code. It can save you a lot of trouble in the long run.

Jasmine Testing Cheat Sheet

While the documentation for jasmine is great, sometimes all you need a cheat sheet to reference for the API. I found this jasmine testing cheat sheet to be very useful after doing lots of Python unit testing which doesn’t use the same API as jasmine at all. The cheat sheetRead More

AngularJS: testing services that use $resource

when you’re writing services that interact with the backend, you may need to break your service into two services to avoid mock objects. And this is okay!

PHPUnit Essentials Book Review

PHPUnit Essentials would have come in handy while on a recent contracting gig and on all the other PHP projects I’ve worked on. The book is published by Packt Publishing who seem to be the new O’Reilly, the last book I bought from them was on AngularJS and it wasRead More

Why Proper Terminology in the Software/Web Dev Industry Matters

Terminology and jargon are part of any field and industry. They enable us to communicate with a common vocabulary which makes it quicker for us to get to the matter at hand. The nice thing about our industry is that people without computer science degrees, such as myself, can getRead More

Alternatives to Acceptance Testing

Alternatives to Acceptance Testing I like the goal of eliminating defects while you’re writing code rather than fix bugs later on. When it comes to testing, my goal is to eliminate defects. At least the ones that matter. (Netscape 4.01 users, you’re on your own.) And I’d much rather prevent defects than findRead More