Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#49·ladder

Ruleset testing

Author: deoxykevCreated Nov 26, 2023Updated Aug 31, 2024

As per https://github.com/everywall/ladder-rules/pull/3, we'll need to implement some robust testing.

The main challenge is to test after client-side JS rendering happens, which will probably mean we'll need a headless browser.

A test could look like this: https://github.com/everywall/ladder/blob/ladder_tests/tests/tests/www-wellandtribune-ca.spec.ts

And the results like this.

Screenshot 2023-11-26 at 4 47 40 PM

Perhaps we'll need some codegen in order to go from ruleset to test?

Source: everywall/ladder

View original on GitHubView discussion on GitHub