“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, but never to show their absence.”
~ Edsger Dijkstra
Problem: How do I use ScalaTest in Eclipse (or, How do I run my ScalaTest unit tests from Eclipse?)
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:
I just saw the following Scala source code in a Play Framework 2 sample application, and it struck me as a nice example of how to call the
foreach method on a Seq to populate some sample data:
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 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.
Here's the material from a seminar I've done several times on "Working Backwards with JUnit". The idea for this seminar came about from an article of the same name by several authors in the Extreme Programming blue book. I can't remember their names right now, but all of the credit goes to them for the idea, and I need to acknowledge them properly.