Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-23816

Cannot run server itest module separately

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 4.4.3.Final
    • 4.4.3.AM2
    • build, server
    • None

      Now that the server tools bot tests have been moved from jbosstools-integration-tests github repo to jbosstools-server, I would like to find a way to run a specific test in the simplest way possible.

      The test bundle I want to run is this:
      as/itests/org.jboss.tools.as.ui.bot.itests [1]

      This is the kind of command that I would expect to work from the root directory of the git repo:

      $ mvn clean verify -pl as/itests/org.jboss.tools.as.ui.bot.itests -am -Djbosstools.test.jboss-eap-7.x.md5=4973998216a8eb5b2f5a6fc00d84705c -Dswtbot.test.skip=false  -Djbosstools.test.jboss-eap-7.x.home='${requirementsDirectory}/jboss-eap-7.1' -DskipRequirements=false -Djbosstools.test.jboss-eap-7.x.url=$EAP_URL -Dtest.profile=eap7x-compatibility -Dusage_reporting_enabled=false -U -DskipTests=false -PITests

      This will fail:

      [ERROR] Cannot resolve project dependencies:
      [ERROR]   Software being installed: org.jboss.tools.as.ui.bot.itests 3.2.3.qualifier
      [ERROR]   Missing requirement: org.jboss.tools.as.ui.bot.itests 3.2.3.qualifier requires 'bundle org.jboss.ide.eclipse.as.reddeer 
      

      I was under the impression that using "-pl -am" with maven will ensure that all the deps from the maven project are added to the build, but it seems this does not work for dependencies defined in Manifest.MF file of the bundle?

      What options do we have here? The simplest solution is to first build the whole repo and install it in the local maven repo, but I'd like to avoid that. Another option would be to add the whole jbosstools repo to the ITests profile in parent pom, but I'm guessing that not everybody would like that.

      Is there some other way?
      [1] https://github.com/jbosstools/jbosstools-server/tree/master/as/itests/org.jboss.tools.as.ui.bot.itests

            nickboldt Nick Boldt
            exd-mmalina Martin Malina
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: