=======
This add-on contributes an XSpec Test Results view in Oxygen XML Editor/Developer intended to help those that create XSpec scenarios.
- In Oxygen, go to Help->Install new add-ons to open an add-on selection dialog box.
- Enter or paste https://raw.githubusercontent.com/xspec/oXygen-XML-editor-xspec-support/master/build/update_site.xml in the Show add-ons from field.
- Select the XSpec Helper View and XSpec Framework add-ons (both are required) and click Next.
- Select the I accept all terms of the end user license agreement option and click Finish.
- Restart the application.
- Download the plugin ZIP package and unzip it inside
{OxygenInstallDir}/plugins
. - Download the framework ZIP package and unzip it inside
{OxygenInstallDir}/frameworks
.
- Inside Oxygen XML Editor/Developer, open an XSpec file.
- Click the XSpec Run button on the toolbar.
Result: An XSpec Test Results view will be opened.
Tip: At this point you can switch to the XSLT and use the "Run" actions in this view to execute the scenarios.
- For each test, there is a Show action that selects the coresponding test in the editor.
- For each scenario, there is a Run action that just runs that particular scenario.
- For a failed test, you can click on it to open the diff comparison between the expected and actual results.
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
.