Awesome Open Source
Awesome Open Source


Acceptance Tests As Monitors

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

Latest Build Status

Build Status

Maven Dependency


where atam4j.version is the version number you want to use. The latest version is as shown below
Maven Central

Using atam4j

  1. Include the atam4j maven dependency along with the following required dependencies

where {dw.version} should be replaced by the version number as defined by the dw.version property in the main project pom

  1. Write Junit based tests in the usual manner. You can choose to either add a @Monitor annotation to your test classes and let atam4j detect them or simply supply an array of classes to the builder. This is explained further, below.

  2. Instantiate Atam4j in your main dropwizard application class, as shown below

If specifying an explicit array of Test classes:

new Atam4j.Atam4jBuilder(jerseyEnvironment)     

If using @Monitor annotations to auto-detect test classes:

new Atam4j.Atam4jBuilder(jerseyEnvironment)      

where jerseyEnvironment is an object of type io.dropwizard.jersey.setup.JerseyEnvironment

  1. Run your app and observe the status of the acceptance tests reported by the /tests endpoint.

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

Additional usage documentation

Refer to our Wiki

Developing atam4j

Build and Release

Building Locally

mvn clean install

Running Tests using Maven CLI

mvn clean test

Release - Manual


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


  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 "Prepare 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 -

  2. Deploy to maven central

mvn clean deploy

Artifact repo



Look for non-snapshot version

Overview of modules


A module which tests atam4j from end to end by starting an application that imports the core-library and runs dummy-tests.


The core library that runs tests and exposes the results via an api.


Module containing the atam4j annotations only. If you wish to annotate your tests, this is the only dependency required.


Contains dummy tests to verify that atam4j reports correctly on the status of tests that we know in advance will pass or fail. These are not run during the build.


Contains some common code shared by tests.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Java (403,638
Monitoring (11,961
Annotations (10,971
Dummy (2,650
Dropwizard (855
Acceptance Testing (147
Application Monitoring (24