Coder Social home page Coder Social logo

atam4j's Introduction

atam4j

Acceptance Tests As Monitors

  • A simple library that allows you to run junit tests as monitoring checks.
  • Runs tests on a schedule and exposes results via a restful api that can called from your monitoring (e.g. nagios, zabbix, icinga, pingdom etc etc)

Latest Build Status

Build Status

Maven Dependency

<dependency>    
   <groupId>me.atam</groupId>    
   <artifactId>atam4j</artifactId>    
   <version>0.2.0</version>    
</dependency>

Using atam4j

  1. Include the atam4j maven dependency.

  2. Write Junit based tests in the usual manner, with the exception of including them in the main application classpath instead of the tests classpath. This can be done by including them in the src/main/java directory instead of the src/test/java directory.

  3. Instantiate the AcceptanceTestHealthCheckManager in the run method of your dropwizard application class.

new AcceptanceTestHealthCheckManager(environment, TEN_MINUTES_IN_SECONDS, HelloWorldTest.class).initialise();

  1. Run the dropwizard app and observe the status of the acceptnace tests reported under the health-check endpoint.

Refer to atam4j-sample-app for a complete working example.

Available Versions

Snapshots

https://oss.sonatype.org/content/repositories/snapshots/me/atam/atam4j/

Releases

Look for non-snapshot version https://oss.sonatype.org/content/groups/public/me/atam/atam4j/

Developing atam4j

Build and Release

Building Locally

mvn clean install

Running Tests using Maven CLI

mvn clean test

Release - Manual

Prerequisite

Only core committers can release atam4j to maven central. You need Sonatype Nexus OSS account info for atam.me.

Steps
  1. Set version of the release

mvn versions:set -DnewVersion=${versionNumber}

  1. Commit the version back to git and push to remote

git commit -a -m "Preparing release v${versionNumber}"
git push

  1. Tag code

git tag -a v${versionNumber} -m 'version ${versionNumber}โ€™ git push origin v${versionNumber}

  1. Create release in Github - https://github.com/atam4j/atam4j/releases

  2. Deploy to maven central

mvn clean deploy

atam4j's People

Contributors

anuragkapur avatar phillbarber avatar tjcutajar 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.