Enum Class TestConfigurationError

java.lang.Object
java.lang.Enum<TestConfigurationError>
org.ek9lang.cli.TestConfigurationError
All Implemented Interfaces:
Serializable, Comparable<TestConfigurationError>, Constable

public enum TestConfigurationError extends Enum<TestConfigurationError>
Error codes for test configuration and execution problems.

These errors occur during test discovery and execution (the -t command), not during normal compilation. They integrate with VerboseErrorMessages for detailed explanations at error level E3.

Error code ranges:

  • E81xxx - Test configuration/discovery errors
  • E82xxx - Test execution errors
See Also:
  • Enum Constant Details

    • MISSING_EXPECTED_OUTPUT

      public static final TestConfigurationError MISSING_EXPECTED_OUTPUT
      Missing expected output file for a parameterized test case. Found commandline_arg_{id}.txt but no matching expected_case_{id}.txt.
    • ORPHAN_EXPECTED_OUTPUT

      public static final TestConfigurationError ORPHAN_EXPECTED_OUTPUT
      Orphan expected output file with no matching commandline args. Found expected_case_{id}.txt but no matching commandline_arg_{id}.txt.
    • ARGUMENT_COUNT_MISMATCH

      public static final TestConfigurationError ARGUMENT_COUNT_MISMATCH
      Argument count in commandline file doesn't match program's declared parameters.
    • UNEXPECTED_ARGUMENTS

      public static final TestConfigurationError UNEXPECTED_ARGUMENTS
      Arguments provided for a program that declares no parameters.
    • MISSING_ARGUMENTS

      public static final TestConfigurationError MISSING_ARGUMENTS
      Program declares parameters but no commandline files found.
    • TYPE_CONVERSION_ERROR

      public static final TestConfigurationError TYPE_CONVERSION_ERROR
      Cannot convert argument string to required parameter type.
    • EMPTY_TEST

      public static final TestConfigurationError EMPTY_TEST
      Test program has no assertions and no expected output files. The test would always pass vacuously.
    • DUPLICATE_CASE_ID

      public static final TestConfigurationError DUPLICATE_CASE_ID
      Duplicate test case IDs found in the same directory.
    • INVALID_FILE_PATTERN

      public static final TestConfigurationError INVALID_FILE_PATTERN
      Invalid file name pattern detected, likely a typo. Includes fuzzy match suggestion.
    • INVALID_PLACEHOLDER

      public static final TestConfigurationError INVALID_PLACEHOLDER
      Invalid placeholder syntax in expected output file. E.g., {{InvalidType}} is not a valid EK9 type.
    • TEST_TIMEOUT

      public static final TestConfigurationError TEST_TIMEOUT
      Test execution exceeded the timeout limit.
    • NO_OUTPUT

      public static final TestConfigurationError NO_OUTPUT
      Test produced no output but expected output file exists. The program ran but printed nothing.
  • Method Details

    • values

      public static TestConfigurationError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TestConfigurationError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getErrorCode

      public String getErrorCode()
      Get the error code (e.g., "E81001").
    • getDescription

      public String getDescription()
      Get the short description of the error.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TestConfigurationError>