Code Monkey home page Code Monkey logo

molwitch-apitests's Introduction

molwitch-apitests

Unit test library to make sure molwitch implementations correctly implement the API.

How to Use

To run these tests for your implementation add this as a dependency in your maven POM

<dependency>
        <groupId>gov.nih.ncats</groupId>
        <artifactId>molwitch-apitests</artifactId>
        <version>0.6.0</version>
        <type>test-jar</type>
        <scope>test</scope>
    </dependency>

Maven won't run these extra tests by default it is recommended you explicitly run the API tests from your molwitch implementation root directory:

mvn clean test -Dtest=ApiCheckerSuite

This will run thousands of automated tests that will produce a report when it's complete to show which features are Fully Compliant, Partially Compliant or Not Compliant.
There may be additional notes or comments about which specific sub-features are not passing.

How To make Tests Fail

By default, the API Checker will still make all the junit tests pass even if they throw exceptions or assertion errors . This is so a molwitch-implementation that isn't fully compliant can still be move through all the phases of the maven pipeline to be packaged and deployed even if some molwitch features are missing.

To make the failing tests fail the build, set this parameter ot true molwitch.apiContract.ErrorOnFailure

mvn clean test -Dtest=ApiCheckerSuite -Dmolwitch.apiContract.ErrorOnFailure=true

molwitch-apitests's People

Contributors

chemmitch avatar dependabot[bot] avatar dkatzel-ncats avatar tylerperyea avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

dkatzel-ncats

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.