Skip to content

v0.18.0

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Nov 07:15
7ee44cd

[0.18.0] - 2023-11-08

  • Support matching multiline error message under ---- for both statement error and query error.

    query error
    SELECT 1/0;
    ----
    db error: ERROR: Failed to execute query
    
    Caused by these errors:
      1: Failed to evaluate expression: 1/0
      2: Division by zero
    

    The output error message must be the exact match of the expected one to pass the test, except for the leading and trailing whitespaces. Users may use --override to let the runner update the test files with the actual output.

    Empty lines are allowed in the expected error message. As a result, the message must end with two consecutive empty lines.

    Breaking changes in the parser:

    • Add new variants to ParseErrorKind. Mark it as #[non_exhaustive].
    • Change the type of expected_error from Regex to ExpectedError, which is either a inline Regex or multiline String.