Re: Caching checkstyle results; running only broken tests

Oliver Burn <[email protected]> Fri, 15 Jul 2011 13:24:22 +1000
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <CAHZftdUZ6xfNG9CB+0hHGunZ0O2Ujb4kuqB4UY7NaQYxhfY-oQ@mail.gmail.com>
Hi,

I would recommend that you look into the cacheFile property on the
TreeWalker module, as described at
http://checkstyle.sourceforge.net/config.html.

Is this not what you are looking for?

Regards,
Oliver

On Fri, Jul 15, 2011 at 13:07, Mirza Abbas Raza <[email protected]>wrote:

> Hi,
>
> My apologies if this has already been addressed. I had a hard time
> searching it on the mailing list. Nothing novel about this - anybody using
> checkstyle with a non-trivial application must have seen this.
>
> So, checkstyle takes almost 5 minutes to run, partly because we have lots
> of suppressions. I want to minimize the time by letting checkstyle cache the
> results and run only the broken tests on the subsequent runs. Turns out, no
> solution is available out of the box at least based on my google search. One
> solution that I found online is this
> http://lifeisbetter.in/blog/2010/10/26/checkstyle-ant-task-run-checkstyle-only-on-modified-files/ .
> The issue with this solution is that if a broken test is not fixed, that
> test will not run again because the file was not modified. I am thinking of
> having a timestamp based solution. However, it there is a out of the box
> solution, that would be the best deal. Any pointers on existing solutions
> would help too. Any help appreciated.
>
> Thanks,
> Abbas
>
>
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> Checkstyle-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/checkstyle-user
>
>

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user