It’s not going too well tonight. I’m enjoying a 12oz. bottle of Labatt Blue and not enjoying my struggle to integrate GSpec with JUnit. The problem is my much bragged about Groovy Maven2 integration. I haven’t done anything with it in some time so I forget how things kinda work. Plus most of my prototyping was done on my other computer (which is 5 miles away) so I’m at a loss. Here’s what happened so far. I threw together a unit test to excercise a potential JUnitGSpecSuiteBuilder. The concept is simple enough. Create a builder that will interpret a GSpec file and provide access to the closures within. Well let me be more specific. GSpec works using a Groovy builder. The builder incorporates a collaborator object and provides a sort of DSL for the syntax of GSpec. (Forgive me if I soud a little stoopid but Mr. Labatts is talking to me.) I won’t go into too much detail (while I’m drinking) but in short I want to collect the closures that makeup the setup, teardown (teardown is actually called inConclusion), and specify closures and hand them off to JUnit in the form of a TestSuite. Sounds simple enough until I try to get my dumb environment together. I work between home and the office so there’s a lot of copying and code shuffling involved. (One of my buddies tipped me to Bazaar which I’ll start using shortly.) My IDE, and Maven setup at home isn’t nearly as elaborate as what I use in the office. So now I got these issues with Maven not finding Groovy-1.0 pom files. I side step that problem with a manual download then I have other issues when I try to compile and run everything with Maven. For some reason the tests compile cycle (which runs after the rinse cycle) doesn’t see the production classes. I’m just all frustrated and my ulcers are acting up. Here’s my dumb pom.xml. (Crap! I gotta install the danged Copy As HTML plugin…) I’ll see if someone else happens to be reading my site @ 11pm EST and cares enough to bail me out. (Chances are very slim!)
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
I’m going to take a break and watch a Blockbuster or something. Holla…