GroovyTestSuite (Groovy 5.1.0)

Package: groovy.test

## [Java] Class GroovyTestSuite

- groovy.test.GroovyTestSuite

-     public class GroovyTestSuite
      extends TestSuite

  A TestSuite which will run a Groovy unit test case inside any Java IDE either as a unit test case or as an application.

  You can specify the GroovyUnitTest to run by running this class as an application and specifying the script to run on the command line. `java groovy.test.GroovyTestSuite src/test/Foo.groovy` Or to run the test suite as a unit test suite in an IDE you can use the 'test' system property to define the test script to run. e.g. pass this into the JVM when the unit test plugin runs... `-Dtest=src/test/Foo.groovy`

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `protected static String` | `file` |
    `protected GroovyClassLoader` | `loader` |

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Class<?>` | `compile(String fileName)`
    `` | `public void` | `loadTestSuite()`
    `` | `public static void` | `main(String[] args)`
    `` | `public static Test` | `suite()`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class TestSuite` | `addTest, addTestSuite, countTestCases, createTest, equals, getClass, getName, getTestConstructor, hashCode, notify, notifyAll, run, runTest, setName, testAt, testCount, tests, toString, wait, wait, wait, warning`

- - ### Field Detail

    - #### protected static String file

    - #### @SuppressWarnings("removal")
      protected final GroovyClassLoader loader

  - ### Method Detail

    - #### public Class<?> compile(String fileName)

    - #### public void loadTestSuite()

    - #### public static void main(String[] args)

    - #### public static Test suite()