Skip to content

Conversation

Alizter
Copy link
Collaborator

@Alizter Alizter commented Aug 29, 2025

In this PR, we enrich the cram test lexer with location information. In order to do this, we need to modify how lines are being lexed so that we can increment the line count correctly.

The tests introduced in #12334 give us some guarantees that we are preserving behaviour.

The motivation for this change is to allow for better error messages related to cram tests. For example, in a future PR we may enrich the timeout error with the exact location of the timed out command.

TODO:

  • more aggressive tests to make sure locations are correct
  • add location to timeout test
  • can the lexer be simplified further?

@Alizter Alizter force-pushed the cram-lex-loc branch 3 times, most recently from d77a6c4 to c2b1fe0 Compare August 29, 2025 16:47
We add support for lexing locations in cram tests.

Signed-off-by: Ali Caglayan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant