db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5155) Make testcases pass in non-English locale
Date Mon, 28 Mar 2011 14:55:05 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012091#comment-13012091

Knut Anders Hatlen commented on DERBY-5155:

I think RunTest and RunSuite already set user.language and user.country to English/US. See
getCommandLine() in the ...functionTests.harness.jvm class. So hopefully there's nothing more
to do for 2.

Most of the JUnit tests are independent of the locale because they only test query results
and the SQLState of errors. The exception is those that check the contents of messages from
the database. My preference would be to handle the failures individually and only hard-code
the locale for the tests that actually depend on a particular locale in order to succeed.
If we force all our tests to run in English locale only, we lose some variation in the testing
and may not discover bugs that only appear in non-English locales.

> Make testcases pass in non-English locale
> -----------------------------------------
>                 Key: DERBY-5155
>                 URL: https://issues.apache.org/jira/browse/DERBY-5155
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Houx Zhang
>            Assignee: Houx Zhang
>              Labels: gsoc, gsoc2011
> There are a lot of derby testing depending on the English locale, which will fail in
a non-English locale. A general resolution should be provided.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message