NOTE: This is a Github placeholder repo for the project's true repo on Gitlab. You can raise issues using this repo, but all code will be found here
HTML Test Utils is a library that makes it easier to test generated HTML in your Crystal projects. Largely inspired by Vue Test Utils, and powered by Lexbor.
Testing HTML strings in Crystal isn't easy. It's possible to use Regex
or Lexbor
to test the structure and content of HTML, but neither one is very convenient. HTML Test Utils
provides just this convenience, making it easy to traverse the structure of an HTML document, and query the elements in the ways that would be used during testing.