Giter Site home page Giter Site logo

fun-with-bdd-using-xspec's Introduction

XSLT BDD with Xspec

Author: José Miguel Martínez Carrasco
Version: 1.0.0
Date: 17-12-2013

Introduction

I wanted to apply behaviour driven development (BDD) techniques to XSLT development.

Requirements

Here are the commands to install them on Fedora linux 19:

yum install java-1.7.0-openjdk ant saxon
cd /usr/local
wget 'http://xspec.googlecode.com/files/xspec-0.4.0rc1.zip'
unzip xspec-0.4.0rc1.zip

For OSX I have used homebrew:

brew install ant ivy

Setup

Use xspec.properties file to provide settings like Xspec home folder and Saxon home folder:

# saxon system binary
saxon.jar.unix=/usr/share/java/saxon.jar

If you don't have saxon installed, an ivy task is provided to download it for you. As the saxon jar file is operating system dependent, you need to populate relevant properties:

# saxon ivy binary
saxon.jar.unix=./lib/Saxon-HE-9.4.jar
saxon.jar.mac=./lib/Saxon-HE-9.4.jar

If you go for the second approach, run this command to get saxon library:

ant resolve

Run

This is the default task, just especify the specification file to process.

The tutorial folder contains the files you can find in xspec tutorial, just to check works.

ant -Dxspec.xml=tutorial/escape-for-regex.xspec

Note for MacOSX users, you need to specify ivy libraries location:

ant -lib /usr/local/Cellar/ivy/2.3.0/libexec/ -Dxspec.xml=tutorial/escape-for-regex.xspec

Check build.sh script if you don't like typing.

Debug

There is an echoproperties task useful for debugging purpuoses.

Clean

Just run the clean task to delete the directory containing output reports.

fun-with-bdd-using-xspec's People

Contributors

jm2dev avatar

Watchers

 avatar  avatar  avatar

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.