Giter Club home page Giter Club logo

tests's Introduction

tests

Test suites for testing DataNucleus using JDO, JPA and REST APIs.

Build "framework", "framework.maven" and "samples" first, then use the tests for the API in question.

Raise issues in the GitHub issue tracker for this repository.

Running tests

Tests are run using framework.maven which is a custom maven plugin that allows the tests to be executed for different configurations e.g. optimistic, pessimistic. It will create several Maven Surefire executions dynamically to test different configurations. Some test projects also have more than one execution configured, allowing tests to be run for different identity types as well i.e. application or datastore.

Here are few examples on how to run the tests:

  • Run all the executions and default configuration

mvn clean test

  • Run all the executions with optimistic and pessimistic configuration

mvn -Dtest.configs=optimistic,pessimistic clean test

On "jdo/identity" this will trigger 4 different executions, each configuration is run for each execution.

  • Run the CollectionTest, skipping "application-identity" execution and using optimistic configuration

mvn -Dtest=CollectionTest -Dtest.configs=optimistic -Dtest.application-identity.skip=true clean test

  • Run all the executions with optimistic using MySQL database

mvn -Pmysql -Dtest.configs=optimistic clean test

Database cleanup

Before running each test set execution the databased will be cleaned up automatically. This clean up can be skipped by setting maven.datanucleus.test.skip.reset property to true.

mvn -Pmysql -Dmaven.datanucleus.test.skip.reset=true clean test

tests's People

Contributors

andyjefferson avatar ergunbaris avatar nlmarco avatar renataogarcia 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.