Skip to content

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

Description

@vkryukov

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions