html_test_utils

A library for testing HTML strings in Crystal projects

HTML Test Utils

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.

Why HTML Test Utils?

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.

Repository

html_test_utils

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • 9 months ago
  • May 21, 2023
License

Links
Synced at

Thu, 21 Nov 2024 15:34:25 GMT