tests

Caliper, a tool for running benchmark tests in Java alvin September 5, 2017 - 10:24am

Caliper is a tool for running benchmarks (micro benchmark tests) in Java.

Two lessons on ScalaCheck alvin July 6, 2017 - 8:06am

The next release of my book on Scala and functional programming will include at least two lessons on ScalaCheck.

If testing costs more than not testing, then don’t test alvin May 17, 2017 - 3:17pm

“If testing costs more than not testing, don’t test.”

~ Kent Beck (via this twitter page)

Program testing can be used to show the presence of bugs ... alvin May 15, 2017 - 10:58am

“Program testing can be used to show the presence of bugs, but never to show their absence.”

~ Edsger Dijkstra

ScalaTest 112: How to run ScalaTest unit tests in Eclipse alvin February 16, 2014 - 2:48pm

Problem: How do I use ScalaTest in Eclipse (or, How do I run my ScalaTest unit tests from Eclipse?)

Solution

I do a lot of work from the command line with Ant builds and similar things, but there are times I like to do things through Eclipse. Today I wanted to run my ScalaTest unit tests in Eclipse, and found this to be a straightforward task.

Besides Scala, Eclipse, and an Eclipse project, you'll need:

CakePHP automated web testing with SimpleTest alvin January 30, 2011 - 12:54pm

CakePHP/SimpleTest automated web testing: Can you share an example of some automated CakePHP SimpleTest web tests?

Sure, here's a quick look at how I've created a suite of CakePHP automated web tests using SimpleTest to perform integration testing on a new CakePHP web application.

The recipe for creating automated web tests in CakePHP is fairly simple:

CakePHP web testing - deleting database test data alvin January 30, 2011 - 12:47pm

CakePHP delete database test data FAQ: How can I delete CakePHP test data from my database in automated CakePHP unit and web tests (integration tests)?

I recently created a large set of CakePHP unit tests and CakePHP web tests (essentially integration tests), and as part of thorough testing, I needed to be able to create some user accounts and insert some test data into the database.

Unit tests - documentation you can compile

In the category of best practices I have to include my thoughts today on unit tests as a form of "comments/documentation you can compile". Let me explain:

I recently had the experience of (a) working on a small but complicated software development project, (b) leaving that project for six months, and then (c) being asked to work on it again. All I can say it wow -- what a great experience it was to come back to a project that was loaded with unit and code coverage tests.

eXtreme GUI Software Testing (Part 2) alvin July 11, 2007 - 8:31pm

As I mentioned in a previous blog entry (eXtreme GUI Testing, Part 1) I've been motivated to work on a project in my spare time, and I'd like to start leaking the details here.

For lack of a better name I'm currently calling this project eXtreme GUI Tester, or XGT for short. As its name implies, this is an application (actually a suite of applications) that hopes to make automated GUI testing a little more of a reality.