Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] why are JGit unit tests in separate projects

On Mon, Sep 2, 2013 at 11:09 AM, Igor Fedorenko <ifedorenko@xxxxxxxxxxxx> wrote:
> I thought you were using maven to build jgit. Can't you use scope=test
> for junit and other test dependencies?

We do. But within Eclipse the classpath isn't isolated.

> On 2013-09-02 12:51 PM, Shawn Pearce wrote:
>>
>> On Mon, Sep 2, 2013 at 7:00 AM, Matthias Sohn <matthias.sohn@xxxxxxxxx>
>> wrote:
>>>
>>> I am wondering why JGit unit tests are living in their own separate
>>> Eclipse
>>> projects / Maven modules.
>>> Signing would be easier if they would reside in tst folder of the project
>>> /
>>> module they test.
>>
>>
>> Because the tests depend on JUnit, which the main bundles don't. If
>> you put them into the same project then the production code can see
>> JUnit and possibly other dependencies that exist only for the test
>> cases. I did not want that.
>>
>> Of course Gerrit now goes to the extreme opposite where there is one
>> massive classpath for everything. *sigh*
>> _______________________________________________
>> jgit-dev mailing list
>> jgit-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/jgit-dev
>>
> _______________________________________________
> jgit-dev mailing list
> jgit-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jgit-dev


Back to the top