Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cchantep/alohura

Environment specification framework (or on the Discworld, the lightning goddess of the beTrobi people).
https://github.com/cchantep/alohura

scala specs2

Last synced: 11 days ago
JSON representation

Environment specification framework (or on the Discworld, the lightning goddess of the beTrobi people).

Awesome Lists containing this project

README

        

# Alohura

Environment specification framework (or on the Discworld, the lightning goddess of the beTrobi people).

## Requirements

* Scala 2.12
* Java 1.8+
* SBT 1.0+

## Usage

Alohura can be used in SBT projects adding dependency `"alohura" %% "alohura" % "VERSION"`
and having `"Tatami Releases" at "https://raw.github.com/cchantep/tatami/master/releases/"` in resolvers.

### Specs matchers

Class:
- `"name.of.class.A" must beInstantiated[a.super.class.of.A](jarUrl)` (class A must have a no-arg constructor)
- `"name.of.class.A" must beInstantiatedLike[a.super.class.of.A](jarUrl) { instance => ... }`

Network:
- `"host" must beResolvedAs { host => ... }`
- `"host" must beListeningOn(80)`
- `"host" must beRespondingSmtp` or `"host" must beRespondingSmtp(25)`

SQL/Database:
- `"jdbc:url" must connectDatabaseWith("user", "password"[, secTimeout, Some(java.sql.Driver)])`

## Build

Alohura can be built from these sources using SBT: `sbt publish`

[![CircleCI](https://circleci.com/gh/cchantep/alohura.svg?style=svg)](https://circleci.com/gh/cchantep/alohura)