Skip to content

An oxygen XML Editor plugin intended to help those that create XSpec scenarios.

Notifications You must be signed in to change notification settings

StevenHiggs/oXygen-XML-editor-xspec-support

 
 

Repository files navigation

=======

oXygen-XML-editor-xspec-support

An oxygen XML Editor plugin intended to help those that create XSpec scenarios.

Install as Add-On

  1. In the oXygen menu, open Help » Install new add-ons...
  2. In the field Show add-ons from, add this URL: https://raw.githubusercontent.com/xspec/oXygen-XML-editor-xspec-support/master/build/update_site.xml
  3. The XSpec Helper View and the XSpec Framework (required by the XSpec Helper view plugin) add-ons will be displayed. Follow the steps to install them both and restart oXygen.
  4. Optional: check Enable automatic updates checking in Options » Preferences » Add-ons to get update notifications

Alternative installation method

  1. download the plugin ZIP package and unzip it inside {OxygenInstallDir}/plugins
  2. download the framework ZIP package and unzip it inside {OxygenInstallDir}/frameworks

How to use it

  1. Inside Oxygen open an XSpec file.
  2. On the toolbar click on the action "XSpec Run"
  3. A view named "XSpec Test Results" will be opened.

Note: At this point you can switch to the XSLT and use only the "Run" actions in the view to execute the scenarios.

What you can do inside the "XSpec Test Results" view:

  1. For each test threre is a "Show" action that will select in the editor the coresponding test
  2. For each scenario there is a "Run" action that will run just that scenario
  3. For a failed test you can click on it and the diff between the Expected/Actual results will be opened

How to customize it

On the XML XSpec report, an XSLT is applied that generates HTML. This HTML is opened inside the view. The XSLT in question is: {pluginDirectory}/frameworks/xspec/src/reporter/unit-report-oxygen.xsl

About

An oxygen XML Editor plugin intended to help those that create XSpec scenarios.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 98.0%
  • XSLT 1.3%
  • Java 0.3%
  • XProc 0.2%
  • CSS 0.1%
  • Batchfile 0.1%