Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3917

Confusion executing Unit Tests and IT's - and a possible bug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: More Details Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.0
    • Fix Version/s: None
    • Component/s: Unit Testing Framework
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Needed

      Description

      Integration tests in dspace-spring-rest\src\test\java\org\dspace\app\rest did not run for me when I run "mvn test ..." although the are run by travis.  Curiously, the tests in dspace-spring-rest\src\test\java\org\dspace\app\rest* were found and executed.

      The following command does not find integration tests

      mvn clean install license:check -Dmaven.test.skip=false -DskipITs=false

      Description

      • dspace-spring-rest\src\test\java\org\dspace\app\rest**IT.java are found
      • dspace-spring-rest\src\test\java\org\dspace\app\rest*IT.java are not found

      Tests are found when referenced individually

      {{ mvn test -Dtest=org.dspace.app.rest.BitstreamRestRepositoryIT -Dmaven.test.skip=false -DskipITs=false}}

      Travis Command (works in travis)

      mvn clean install license:check -Dmaven.test.skip=false -DskipITs=false -B -V -Dsurefire.rerunFailingTestsCount=2

       

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            terrywbrady Terrence W Brady
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: