Cool, thanks for your help On Monday, May 7, 2018 at 10:09:55 PM UTC+2, Marc R. Hoffmann wrote: > > Here is a simple fix at least for the build: > > https://github.com/jacoco/jacoco/pull/682 > > Regards, > -marc > > > > On 2018-05-07 15:59, Lukas S. wrote: > > Hi, > > some Unit Tests in the "Command Line Interface" test module fail when the > system language is set to german (and propably russian) > > The problem is that the messages of the exceptions from args4j get > translated, but the unit tests expect english messages. args4j provides > bundles for german and russian. > > For example one problematic line is: assertContains("\"--invalid\" is not > a valid option", err); > "is not a valid option" get's translated by args4j, so err doesn't contain > the english phrase > > The affected test cases are: > ClassInfoTest: should_print_usage_when_invalid_option_is_given > DumpTest: should_print_usage_when_no_argument_is_given > ExecInfoTest: should_print_usage_when_invalid_argument_is_given > InstrumentTest: should_print_usage_when_no_options_are_given > MergeTest: should_print_usage_when_no_options_are_given > ReportTest: should_print_usage_when_no_options_are_given > MainTest: should_print_usage_when_no_arguments_given > > Not sure if this is a problem of JaCoCo or args4j, because it gives a > translated message for getMessage, although there is a specific method to > get a localized message: getLocalizedMessage > > > > > > -- > You received this message because you are subscribed to the Google Groups > "JaCoCo and EclEmma Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/00fdd674-11bd-463b-b94c-f8d2a200a7eb%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/00fdd674-11bd-463b-b94c-f8d2a200a7eb%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > >
-- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/13906fa5-465d-4d27-83c7-8cbe72f0ac6b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
