Enum JUnitXmlDialect

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<JUnitXmlDialect>

    public enum JUnitXmlDialect
    extends java.lang.Enum<JUnitXmlDialect>
    Supported JUnit XML report file dialects
    Since:
    3.17
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ANDROID_CONNECTED
      Produced by the Gradle Android Plugin instrumentation tests
      ANDROID_FIREBASE
      Produced by the Firebase Test Lab using (fladle/flank)
      GENERIC
      Dialect used for JUnit XML reports where no specific dialect is available.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static JUnitXmlDialect valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static JUnitXmlDialect[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ANDROID_CONNECTED

        public static final JUnitXmlDialect ANDROID_CONNECTED
        Produced by the Gradle Android Plugin instrumentation tests
      • ANDROID_FIREBASE

        public static final JUnitXmlDialect ANDROID_FIREBASE
        Produced by the Firebase Test Lab using (fladle/flank)
      • GENERIC

        public static final JUnitXmlDialect GENERIC
        Dialect used for JUnit XML reports where no specific dialect is available. It may be that the parser is not able to parse the given JUnit XML report due to variances in the format. Therefore, it's required to ensure the correctness of the data shown in the Build Scan by comparing it with the raw JUnit XML.

        The following testing frameworks have been verified for correctness with this dialect:

        • Cypress (https://cypress.io) with default junit reporter
        • Jest (https://jestjs.io) with default jest-junit reporter
    • Method Detail

      • values

        public static JUnitXmlDialect[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JUnitXmlDialect c : JUnitXmlDialect.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JUnitXmlDialect valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null