Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1803

Tests are not executed in main

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Testsuite
    • None

      The tests present in the console are not being executed in the main branch. For example in the drm folder:

      mvn clean install
      cd drm
      mvn test
      ...
      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] 
      [INFO] Results:
      [INFO] 
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
      
      mvn test -Dtest=ResourceAddressTest
      ...
      [INFO] Results:
      [INFO] 
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  3.975 s
      [INFO] Finished at: 2022-08-18T19:47:21+02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0.1:test (default-test) on project hal-dmr: No tests were executed!  (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1]
      

      The final reason is that elemento dependency is including junit5 and the tests are not detected.

      [DEBUG]    org.jboss.hal:hal-js:jar:3.6.3-SNAPSHOT:compile
      [DEBUG]       org.jboss.elemento:elemento-core:jar:1.0.10-gwtcom:compile (version managed from 1.0.10-gwtcom)
      [DEBUG]          com.google.elemental2:elemental2-webstorage:jar:1.1.0:compile (version managed from 1.1.0)
      [DEBUG]          org.junit.jupiter:junit-jupiter:jar:5.8.2:compile
      [DEBUG]             org.junit.jupiter:junit-jupiter-api:jar:5.8.2:compile
      [DEBUG]                org.opentest4j:opentest4j:jar:1.2.0:compile
      [DEBUG]                org.junit.platform:junit-platform-commons:jar:1.8.2:compile
      [DEBUG]                org.apiguardian:apiguardian-api:jar:1.1.2:compile
      [DEBUG]             org.junit.jupiter:junit-jupiter-params:jar:5.8.2:compile
      [DEBUG]             org.junit.jupiter:junit-jupiter-engine:jar:5.8.2:runtime
      [DEBUG]                org.junit.platform:junit-platform-engine:jar:1.8.2:runtime
      

      Dependency org.junit.jupiter:junit-jupiter should be excluded.

            rhn-support-rmartinc Ricardo Martin Camarero
            rhn-support-rmartinc Ricardo Martin Camarero
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: