Testing

  • submit to reddit

More Spock Love - How I Tested Complex Install Scenarios

I'm in love. Officially. With Spock. Ok, we've only been hanging out for a...

0 replies - 1260 views - 10/15/12 by Ken Rimple in Articles

Toward a Test Model

Software is still mostly stuck in the simulation stage. The original Agile book, Kent Beck‘s Extreme Programming was...

0 replies - 1498 views - 10/14/12 by Rob Williams in Articles

Enhancing Spring Test Framework with beforeClass and afterClass setup

How to allow instance methods to run as JUnit BeforeClass behavior JUnit allows you to setup methods on the class level once before and after...

0 replies - 2810 views - 10/10/12 by Zemian Deng in Articles

Consider assertThat() in place of assertEquals()

  JUnit 4.4 added a new assertion mechanism with the method assertThat(). Have a look and consider using it in place of...

5 replies - 3674 views - 10/09/12 by Mike Christianson in Articles

Testing Custom Exceptions With JUnit's ExpectedException and @Rule

Exception Testing Why test exception flows? Just like with all of your code, test coverage writes a contract between your code and the business...

0 replies - 4135 views - 10/07/12 by Mike Ensor in Articles

PowerMock, Features and Use Cases

Even if you don’t like it, your job sometimes requires you to maintain legacy applications. It happened to me (fortunately rarely), and the first thing I...

0 replies - 2965 views - 10/07/12 by Nicolas Frankel in Articles

Unit Tests Versus Code Quality

Do unit tests improve code quality? Some famous consultants might disagree, but I think they don’t. Testable code isn’t...

6 replies - 3797 views - 10/03/12 by Felix Dahlke in Articles

(Unit) Testing Swiss Knife: All the Tools You Wanted to Know

I love testing. And I like productivity. There are many tools and libraries that make writing tests easier, more convenient, more fun. I would like to...

0 replies - 3163 views - 09/17/12 by Jakub Holý in Articles

Allowing JUnit Tests to Pass Test Case on Failures

Why create a mechanism to expect a test failure? There comes a time when one would want and expect a JUnit @Test case fail. Though this is pretty rare, it...

0 replies - 3176 views - 09/16/12 by Mike Ensor in Articles

Help, My Code Isn't Testable! Do I Need to Fix the Design?

Our code is often untestable because there is no easy way to “sense1” the results in a good way and because the code depends on external...

0 replies - 2890 views - 09/16/12 by Jakub Holý in Articles

Does ATDD really save you time?

Acceptance Test Driven Development (ATDD) is a very effective development practice that essentially involves writing specifications in the form of documented...

0 replies - 2796 views - 09/12/12 by John Ferguson Smart in Articles

On Testing

More than decade ago, I spent a year doing quality assurance at a big and successful smart card company. It was one of the more...

0 replies - 2981 views - 09/09/12 by Borislav Iordanov in Articles

Testing Automation With Selenium - Part 1

Never send a human to do a machine’s job Testing a CRM application which I am part of became very difficult over the recent months. There were simply...

0 replies - 5288 views - 09/05/12 by Arun Manivannan in Articles

How to Take Unit Testing (and Test-Driving) Seriously

So we write some test code, then make it pass, and restart. If we have still some minutes in the current Pomodoro, let's refactor a bit and extract some...

0 replies - 11393 views - 08/21/12 by Giorgio Sironi in Articles

Automated Acceptance Testing — JBehave & Thucydides Work in Unison

Thucydides is an open source library designed to make it easier to define, implement and report automated acceptance criteria. Until now, Thucydides tests have...

0 replies - 7200 views - 08/14/12 by John Ferguson Smart in Articles