Archive for July, 2008

JUnit and SunSpots

Friday, July 25th, 2008

I’ve been fairly frustrated trying to write code for SunSpots lately. This frustration mostly stems from my previous self-imposed training to use test-driven development. There is some support for using JUnit with SunSpots, but it requires that the code and tests all be deployed to an actual Spot before the tests are run. Since deployment can take a minute or three, I find that I’m developing much larger chunks of code because I don’t want to run the tests as often…

Thus, I spent the time to figure out how to run JUnit tests on my desktop for SunSPOT applications. I put together a strip-down template using JUnit tests for Spots on the desktop for anyone who would like to build on it. I was also able to get my IDE (IDEA) to use the Spot JVM and libraries, so I’m back in the groove with test-driven development!