Git Product home page Git Product logo

dojo-doh-junit-report's Introduction

Dojo DOH Junit XML Report

A simple patch that allows Dojo DOH to generate XML JUnit compliant report

Usage

Place this module in the DOH folder (at the same directory as the "runner.js"). And load it from the _nodeRunner.js, if you need to generate XML output.

Step by step guide

In order to make sure this script does work. Please follow these steps:

  1. clone the dojo/util repo (https://github.com/dojo/util):

git clone https://github.com/dojo/util dojo-utils

  1. cd into the DOH folder

cd dojo-utils/doh/

  1. copy the runner-junit.js in this folder (near _nodeRunner.js)
├── LICENSE
├── README
├── Robot.html
├── _browserRunner.js
├── _nodeRunner.js <-- THIS
├── _parseURLargs.js
├── _rhinoRunner.js
├── _sounds
├── doh.profile.js
├── junit.xml
├── main.js
├── mobileRunner.html
├── package.json
├── plugins
├── robot
├── robot.js
├── runner-junit.js <-- THIS
├── runner.html
├── runner.js
├── runner.sh
├── small_logo.png
└── tests

  1. edit the _nodeRunner.js and include the runner-junit module, you should have something like this:

define(["doh/runner-junit", "require"], function(doh, require) {

  1. test it like this (you need to install Nodejs):

node ../../dojo/dojo.js baseUrl=../../dojo load=doh test=tests/selfTest.js > report.xml

  1. Voila!

How does it work?

This patch overrides the DOH methods, in order to implement the new XML output. The DOH methods being overriden start from this line.

Contribution

This code needs some improvements. Please feel free to submit fixes or fork...

License

Dojo license (http://dojotoolkit.org/license)

dojo-doh-junit-report's People

Contributors

manekinekko avatar sergkam avatar

Stargazers

Alexander avatar

Watchers

James Cloos avatar  avatar  avatar

dojo-doh-junit-report's Issues

Minimal readme

Could you please add some information to the readme so that Dojo noobs (like me) can use this ?
I can't get it running and for now I can't tell if it's a bug or only me being very stupid.

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.