readability icon indicating copy to clipboard operation
readability copied to clipboard

Proposal: Reorganize tests to make them easier to add, extend

Open vkryukov opened this issue 1 year ago • 1 comments

I would like to reorganize tests a-la Readability.js test suite:

  • every fixture lives in it's own folder
  • folder contains source.html and expected.html, possibly along with expected.txt
  • folder contains a expected_meta.json with all other metadata (such as authors, published_at) generated by readable

Potential benefits:

  • easier to port over tests from Readability.js
  • easier to add large html files
  • can extend to support different Floki HTML parsers and account for differences between them

Thoughts @Valian ?

vkryukov avatar Nov 13 '24 05:11 vkryukov

Green light from me! I'm not able to do it by myself because of lack of time, but I'd gladly accept all your contributions and help as much as I can.

Valian avatar Nov 13 '24 08:11 Valian