mvn -Dtest=TestCircle test
As Surefire will strip off any file extension that happens to be there, it's quite easy to create an External Tools Configuration that generates the right command. Here's my configuration for running a single test class:
You'll probably want to have it in your favorites menu as well, that setting is on the Common tab. Also make sure to allocate a Console for the output (on the Common tab as well). Linking the source editor to Package Explorer makes it really convenient to execute the test you're working on.
The other way around would be to fix the real problem, and configure Annotation Processing in Eclipse. Here you need to turn on annotation processing for the project and add the jar files where the annotation processors live. To handle changes in a sane way, I used a variable for the needed jar file:
When it works this approach gives full integration into Eclipse JDT which I like. Unfortunately it seems to be quite brittle. I had it working at one point, but then the annotation processing was lost again. I'd appreciate any comments pointing out how to make that work in a stable fashion!


0 comments:
Post a Comment