Annotation Type Execution

    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME
      Property name used to set the default test execution mode for top-level classes: "junit.jupiter.execution.parallel.mode.classes.default"
      static java.lang.String DEFAULT_EXECUTION_MODE_PROPERTY_NAME
      Property name used to set the default test execution mode: "junit.jupiter.execution.parallel.mode.default"
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      ExecutionMode value
      The required/preferred execution mode.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String reason
      The reason for using the selected execution mode.
    • Field Detail

      • DEFAULT_EXECUTION_MODE_PROPERTY_NAME

        @API(status=EXPERIMENTAL,
             since="5.9")
        static final java.lang.String DEFAULT_EXECUTION_MODE_PROPERTY_NAME
        Property name used to set the default test execution mode: "junit.jupiter.execution.parallel.mode.default"

        This setting is only effective if parallel execution is enabled.

        Supported Values

        Supported values include names of enum constants defined in ExecutionMode, ignoring case.

        If not specified, the default is "same_thread" which corresponds to @Execution(ExecutionMode.SAME_THREAD).

        Since:
        5.4
      • DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME

        @API(status=EXPERIMENTAL,
             since="5.9")
        static final java.lang.String DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME
        Property name used to set the default test execution mode for top-level classes: "junit.jupiter.execution.parallel.mode.classes.default"

        This setting is only effective if parallel execution is enabled.

        Supported Values

        Supported values include names of enum constants defined in ExecutionMode, ignoring case.

        If not specified, it will be resolved into the same value as DEFAULT_EXECUTION_MODE_PROPERTY_NAME.

        Since:
        5.4
      • reason

        @API(status=STABLE,
             since="5.10")
        java.lang.String reason
        The reason for using the selected execution mode.

        This is for informational purposes only.

        Since:
        5.10
        Default:
        ""