Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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).
- Host: GitHub
- URL: https://github.com/cchantep/alohura
- Owner: cchantep
- Created: 2013-03-18T13:10:13.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T13:37:35.000Z (about 1 month ago)
- Last Synced: 2024-10-11T10:21:59.828Z (28 days ago)
- Topics: scala, specs2
- Language: Scala
- Size: 101 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)