title: Gradle task run multiple suites from TeamCity
body: <p>I am using Gradle with TestNG, and I have something like this in the build.gradle file:</p>
  <pre><code>def suite1 = project.hasProperty(&quot;suite1&quot;)
  def suite2 = project.hasProperty(&quot;suite2&quot;)
  etc....
  
  test {
      useTestNG() {
          dependsOn cleanTest
          useDefaultListeners = true
  
          if(suite1) {
              suites &quot;src/test/resources/simpleSuite.xml&quot;
          }
  
          if(suite2) {
              suites &quot;src/test/resources/advancedSuite.xml&quot;
          }
  
          etc....
          etc....
  
      }
  }
  </code></pre>
  <p>The suites in TeamCity looks like this:
  <a href="https://i.stack.imgur.com/rYPUh.png" rel="nofollow noreferrer">suites</a>
  and if I try to select let's say 3 of the 10 available suites, the test job will fail.</p>
  <p>Is it possible to select multiple test suites from the parameters?</p>