Ok, I’m kidding about the lazy part.
But here’s an interesting open source tool - Cucumber. It’s a Behavior Driven Development (BDD) testing framework.
You write the test scripts in plain language:
Feature: Search courses In order to ensure better utilization of courses Potential students should be able to search for courses Scenario: Search by topic Given there are 240 courses which do not have the topic “biology” And there are 3 courses A,B,C that each have “biology” as one of the topics When I search for “biology” Then I should see the following courses: | title | | A | | B | | C |
And then interpret them using test code:
The idea is to let the tests describe the behavior of the system and then code to fulfill the tests. Cucumber is written in Ruby and so are the tests. But it runs on JRuby and on IronRuby so it can be used to test Java code and .Net code.