We are migrating this Jira service to Github. Issue creation is no longer possible on this server and must be done on Github. However, you may browse issues without an account. Editing or commenting on existing issues requires an account.

Please support SLF4J/logback/reload4j projects via Github donations and sponsorship.

Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-994

surefire execution is not hardcoded to locale and timezone

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • None
    • None
    • None

    Description

      problem
      when running tests with mvn (surefire plugin) the locale and the timezone are not specified, thus they are taken from the system. this makes the test execution brittle. as state of now the tests only run in certain timezones, if run in CST (china standard time) for example the following test fails:

      RollingCalendarTest.testVaryingNumberOfDailyPeriods:92 p=20 expected:<1224950400000> but was:<1225036800000>

      solution
      specify the locale and timezone in the surefire configuration of maven like this:

      <argLine>-Duser.country=EN -Duser.language=en -Duser.timezone=CEST</argLine>

      Attachments

        Activity

          Loading...
          We are migrating this Jira service to Github. Issue creation is no longer possible on this server and must be done on Github. However, you may browse issues without an account. Editing or commenting on existing issues requires an account.

          Please support SLF4J/logback/reload4j projects via Github donations and sponsorship.

          Uploaded image for project: 'logback'
          1. logback
          2. LOGBACK-994

          surefire execution is not hardcoded to locale and timezone

          Details

            • Icon: Improvement Improvement
            • Resolution: Won't Fix
            • Icon: Major Major
            • None
            • None
            • None
            • None

            Description

              problem
              when running tests with mvn (surefire plugin) the locale and the timezone are not specified, thus they are taken from the system. this makes the test execution brittle. as state of now the tests only run in certain timezones, if run in CST (china standard time) for example the following test fails:

              RollingCalendarTest.testVaryingNumberOfDailyPeriods:92 p=20 expected:<1224950400000> but was:<1225036800000>

              solution
              specify the locale and timezone in the surefire configuration of maven like this:

              <argLine>-Duser.country=EN -Duser.language=en -Duser.timezone=CEST</argLine>

              Attachments

                Activity

                  People

                    tony19 Tony Trinh
                    sierragolf Sebastian Gröbler
                    Votes:
                    0 Vote for this issue
                    Watchers:
                    2 Start watching this issue

                    Dates

                      Created:
                      Updated:
                      Resolved:

                      People

                        tony19 Tony Trinh
                        sierragolf Sebastian Gröbler
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        2 Start watching this issue

                        Dates

                          Created:
                          Updated:
                          Resolved: