readability
readability copied to clipboard
Proposal: Reorganize tests to make them easier to add, extend
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 ?
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.