Skip to content

Use reference fixtures for structure testing #305

@stasm

Description

@stasm

Rather than duplicating FTL code in fixtures_reference and fixtures_structure and testing both separately, we could generate the structure JSONs from the reference fixtures.

fixtures_reference
    *.ftl // copied from projectfluent/fluent
    *.json // copied from projectfluent/fluent
fixtures_structure
    *.json // generated from fixtures_reference/*.ftl

We'd still run two sets of tests:

  • Reference tests compare the output of the reference parser (stored in fixtures_reference/*.json) with the current output of the tooling parser, ignoring Spans and Annotations.
  • Structure tests compare the expected output of the tooling parser (stored in fixtures_structure/*.ftl) with its current output.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy