Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-10662

Extract Nunjucks Template Tests Into Their Own Module

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • RHDHPAI Sprint 3270

      Task Description (Required)

      https://github.com/redhat-ai-dev/model-catalog-template/pull/2 defines a way that the model catalog template (and other Backstage nunjucks templates) can be tested in a CI system.

      Currently, the test code and associated helper functions, lay in the same file, "test.ts". Since we know that we will likely consume this test framework in other model catalog projects, as well as other nunjucks templates we maintain (e.g. https://github.com/redhat-ai-dev/ai-lab-app), extracting out the common test functions ("RenderTemplates", "TestFileMatchesTemplates"), as well as the model catalog specific functions ("TestModelCatalogDefaults", "TestModelCatalogTechdocs"), into their module might be useful.

              Unassigned Unassigned
              johnmcollier John Collier
              RHIDP - AI
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: