Testing stylesheets can be a difficult task. Find a way to create a test suite for the DocBook stylesheets, for example.

Looking for mad skills in:

testing xslt

This project is part of:

Hack Week 11

Activity

  • over 4 years ago: e_bischoff liked Create Test Framework for XSLT Stylesheets
  • over 4 years ago: thomas-schraitle added keyword "xslt" to Create Test Framework for XSLT Stylesheets
  • over 4 years ago: thomas-schraitle added keyword "testing" to Create Test Framework for XSLT Stylesheets
  • over 4 years ago: thomas-schraitle originated Create Test Framework for XSLT Stylesheets
  • Show History

    Comments

    • e_bischoff
      over 4 years ago by e_bischoff | Reply

      That's challenging.

      Would the test framework be limited to XML output? In that case, a first test would be that the result is well-formed and validates. Of course, that would not mean that it matches expectations.

      More generally, XSLT can produce about anything. What could be checked?

      • thomas-schraitle
        over 4 years ago by thomas-schraitle | Reply

        Thanks Eric for your comment! :)

        Well, actually there is already a test environment called XSpec. However, it works for XSLT 2 only, so it could be an issue for XSLT 1 stylesheets (especially when using extensions and the like).

        In my case, I'm searching for a solution for the DocBook stylesheets. They produce specific results and I'm only interested if some specific structure has been created. This can be easily checked through XPath.

        I tried XSpec, but documentation is a bit limited. Plus, it doesn't work as I expected to it. ;) So I guess, it will be some kind of Python3 + pytest magic. We'll see. :)

    Similar Projects

    work on the sTeam collaboration platform by eMBee

    open-sTeam is a platform for cooperative work a...


    Release DAPS 2.0 by fsundermeyer

    DAPS, the "DocBook Authoring and Publishing Sui...


    Orca: hunting cephalopods for fun and dinner by LarsMB

    Orcas are amazing animals. They are playful, in...


    Easily Deploy an HA cluster in Virtual Machines by aginies

    GOAL

    The goal was to easily and quic...


    Export "salt-toaster" tests execution profile to Prometheus by PSuarezHernandez

    "salt-toaster" allows you to test multiple Salt...