Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Unit tests fails because of localization

On Sat, Jan 2, 2016 at 6:47 AM, Thomas Meyer <thomas@xxxxxxxx> wrote:
>
> the unit test in jgit seems to be depended from the environment
> variables, i.e. LANG and fail when set to e.g. DE:
>
> Results :
>
> Failed tests:
>   AddTest.testAddNothing:67 expected:<...ument "filepattern" [is required]> but was:<...ument "filepattern" [wird benötigt]>
>   RepoTest.testMissingPath:105 expected:<...al: Argument "path" [is required]> but was:<...al: Argument "path" [wird benötigt]>
>
> Tests run: 131, Failures: 2, Errors: 0, Skipped: 1
>
> bug or feature?

Certainly a bug. Looks like we translated "is required" but not the
rest of the message. And maybe the tests are testing the english
translation. They should be using JGitText.get() to get the string for
the language.


Back to the top