[Codenarc-developer] Release a CodeNarc test-jar please
Brought to you by:
chrismair
From: Clay M. <cod...@cl...> - 2012-03-29 20:14:32
|
I'm using CodeNarc on a large Grails app at Netflix. We have created some of our own rules. Some of these are specific to us, some may be useful to a broader audience and submitted back to CodeNarc. It is nice to write and run these rules in our own project as a sandbox. Though this is possible, it is not as easy as it could be. If I am going to write my own rule, I will also write a test for it. I'd like to use the infrastructure already in CodeNarc for the test (namely AbstractRuleTestCase). The problem is that it isn't available to me with the regular jar since it is test code. To overcome this I got the source, modified the pom to release a test-jar, built locally, and released the test-jar to a local repo. There are several easy ways that the CodeNarc project could make this easier. Perhaps release a test-jar and deploy it to the same repos as the regular CodeNarc jar. Here are the minor pom modifications that are needed (http://maven.apache.org/guides/mini/guide-attached-tests.html). Or even simpler is to just move the test building blocks into the main source. BTW, the CodeNarc project might get more visibility and commits if it were on Github. Are there any plans for this? If not would there be an issue with a fan of the project maintaining a mirror on Github? Thanks, Clay |