Skip to content

Automated tests #829

@xfq

Description

@xfq

I'd like to add some automated tests to this project, including (but not limited to):

  • Filename language suffixes match <html lang>
  • f.directory, f.filename, and f.path match the actual paths
  • Dates like f.thisVersion.date and f.firstPubDate are YYYY-MM-DD and not future dates
  • Local script, image, and stylesheet files referenced by the page/article exist
  • boilerplate-<lang>.js matches the page language; for example, articles/article-text-size.ru.html should fail
  • For pages that should have *-data/translations.js, check if the file exists and if trans.*translations are subsets of trans.versions
  • Create an allowlist for historical exception pages. Don't aim for zero exceptions initially.

Initially, we can consider using a simple Node.js script to accomplish these tasks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions