Giter Site home page Giter Site logo

opa2junit's Introduction

opa2junit

NodeJS tool for converting OPA test results to JUnit test results

opa2junit -f input.json

Usage

$ npm install -g opa2junit

opa2junit can then be used in a number of different ways. The recommendation for CI/CD processes is to pipe the result in. This will result in the resulting junit file being written to the console.

opa test . | opa2junit

For CLI options, use the -h or --help options

opa2junit --help

To read in from a file rather than the pipe, use the -f or --file parameters. Note that the -f parameter takes precedence over pipes

opa2junit --file results.json

To write the resulting output to a file rather than the console, use the -o or --output parameters

opa test . | opa2junit --output test-results/test.xml

Note that the above parameters can be used together.

opa2junit -f results.json -o test-results/test.xml

By default, if any tests fail, or error, then opa2junit will return a non-zero return code. This can be disabled by using the -s or --safe parameters

opa2junit -f file-with-errors.json -s

opa2junit's People

Contributors

dezzles avatar

Watchers

 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.