Code Monkey home page Code Monkey logo

Comments (3)

AlexJitianu avatar AlexJitianu commented on July 24, 2024

Currently, the XSpec way of running a set of particular tests is to set the focus attribute on them. I would prefer not to touch the XSpec files for this and to be able to pass as a parameter to the XSLTs the names of the scenarios to be executed. Or perhaps someone has a better idea about how this could be done....

from oxygen-xml-editor-xspec-support.

jelovirt avatar jelovirt commented on July 24, 2024

When the XSpec file is converted to a XSLT with a unique mode per test, right? If you modify the compiler XSLT so that it's easy to determine which scenario matches which mode (e.g. using a counter), then you could run the XSLT starting immediately from the scenario specific mode. Or, you could modify the compiler XSLT to output the name of the mode in the results XML.

(If you had this, then you could actually run e.g. 4 XSLT processes in parallel as an optimization.)

from oxygen-xml-editor-xspec-support.

AlexJitianu avatar AlexJitianu commented on July 24, 2024

Indeed, the compiler generates a named template with an unique name for each scenario. I've overridden the name generation and I now generate an unique name using the scenario label as a seed (the chances for two scenarios to have the same name are pretty slim so I've decided to leave it like this for now). The result is that I can control which templates are invoked through a driver XSLT that imports the compiled XSLT. I've also released a new version that contains this feature.

from oxygen-xml-editor-xspec-support.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.