bastion-dev / Bastion

Java test library for HTTP APIs
http://bastion.rocks
GNU General Public License v3.0
13 stars 8 forks source link
bastion http java rest testing

Bastion Logo

Overview

Bastion is a library that eases the development of end-to-end tests for HTTP APIs. A typical user would write tests using Bastion based off of some sort of API specification. This API specification can be anything like a WADL file, RAML file or a JSON schema. A test engineer would prepare requests and responses based on these specifications to test the overall process of calling these APIs.

Reference guide can be found on: http://bastion-dev.github.io/Bastion/reference/index.html

JavaDocs are available on: http://bastion-dev.github.io/Bastion/javadocs/index.html

Usage

Test

Dependency

Use a dependency management tool such as Maven to download the Bastion library for use in your project. Add the following dependency to your POM file:

<dependency>
    <groupId>rocks.bastion</groupId>
    <artifactId>bastion</artifactId>
    <version>0.7-BETA</version>
    <scope>test</scope>
</dependency>

Alternatively, use Groovy Grapes to use Bastion in your Groovy tests/scripts:

@Grapes(
    @Grab(group='rocks.bastion', module='bastion', version='0.7-BETA')
)

Building

Use Maven to build Bastion and run the associated tests. After checking out the repository use the following command to build and test the source code.

mvn install

Contribute

Bastion is an open-source project! Open-source means that we encourage you to contribute in any way you can. We will accept all contributions, in any shape or form, that help make Bastion better. Here are some things you can do to contribute: