Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Modifying/Testing JGit? Error from testBadCleanFilter test?

On Tue, May 24, 2016 at 9:08 PM, Roy Wood <roy.wood@xxxxxxxxx> wrote:
I'm working on a patch for JGit, but before I bother you guys with it, I'd like to make sure I haven't broken anything.  I see that there are comprehensive tests in the source repo, so I presume that running them will give me a good indication of whether my changes are okay.

So, what's the best way to run the tests?  The contributor guide mentions getting set up with Eclipse and some required dependencies, but the wording suggests that is mostly aimed at EGit.  I'm hoping to be able to just build and test JGit from the command line with Maven.


As far as Maven goes, I seem to be able to run "mvn clean install" and things build fine.  It also looks like the unit tests are run as part of the Maven build. 

yes, this is fine if you want to run all tests.

You can run this even faster if you enable parallel test execution and switch off javadoc generation
(maybe we should make this the default):

$ mvn clean install -T 1C -Dmaven.javadoc.skip=true

if you only want to run a few tests then run them from Eclipse

-Matthias

Back to the top