Annotation Interface TestProfile


@Retention(RUNTIME) @Target(TYPE) public @interface TestProfile
Defines a 'test profile'. Tests run under a test profile will have different configuration options to other tests. Due to the global nature of Quarkus if a previous test was run under a different profile then Quarkus will need to be restarted when the profile changes. Unfortunately there is currently no way to order tests based on profile, however this can be done manually by running tests in alphabetical order and putting all tests with the same profile in the same package.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The test profile to use.
  • Element Details

    • value

      Class<? extends QuarkusTestProfile> value
      The test profile to use. If subsequent tests use the same profile then Quarkus will not be restarted between tests, giving a faster execution.