You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2022/10/05 22:48:41 UTC

[GitHub] [royale-compiler] Rileran opened a new issue, #221: Compiler: Test fail on non english system

Rileran opened a new issue, #221:
URL: https://github.com/apache/royale-compiler/issues/221

   I am using a french system (LANG FR_fr) and I got into trouble trying to run tests on the Compiler project. The test messages are compared against localized message, therefore making test case fail.
   
   Example in `ASPrrivateConstructorTests`, test `testConstructorMustBePublicProblem_withInternalConstructor_andAllowPrivateConstructorsDisabled`
   
   ```
   [ERROR]   ASPrivateConstructorTests.testConstructorMustBePublicProblem_withInternalConstructor_andAllowPrivateConstructorsDisabled:110->ASFeatureTestsBase.compileAndExpectErrors:175 
   Expected: is "A constructor can only be declared public\n"
        got: "Un constructeur ne peut être déclaré que public.\n"
   ```
   
   This can be easily fix by setting this variable to EN_us, but maybe this should be a default in the test configuration.
   
   I have tried adding configuration to the `maven-surefire-plugin` without success. What I have tried so far (in `compiler/pom.xml`) :
   
   ```xml
   <plugin>
     <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-surefire-plugin</artifactId>
       <configuration>
         <environmentVariables>
           <LANG>en_US</LANG>
         </environmentVariables>
     ...
   </plugin>
   ```
   
   and 
   
   ```xml
   <plugin>
     <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-surefire-plugin</artifactId>
       <configuration>
         <systemPropertyVariables>
           <user.language>en</user.language>
           <user.country>US</user.country>
         </systemPropertyVariables>
     ...
   </plugin>
   ```
   
   and 
   
   ```xml
   <plugin>
     <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-surefire-plugin</artifactId>
       <configuration>
         <argLine>-Duser.language=en -Duser.country=US</argline>
     ...
   </plugin>
   ```
   
   Maybe there is something that I am missing here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [royale-compiler] joshtynjala closed issue #221: Compiler: Test fail on non english system

Posted by GitBox <gi...@apache.org>.
joshtynjala closed issue #221: Compiler: Test fail on non english system
URL: https://github.com/apache/royale-compiler/issues/221


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org