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

https://github.com/v2e4lisp/testa

simple test for ruby
https://github.com/v2e4lisp/testa

Last synced: 2 months ago
JSON representation

simple test for ruby

Awesome Lists containing this project

README

          

# Testa

simple test framework

## Installation

Add this line to your application's Gemfile:

gem 'testa'

And then execute:

$ bundle

Or install it yourself as:

$ gem install testa

## Usage

### create tests

```ruby
require 'testa'

test("some description") {
ok { true }
/* test code goes here */
}
```

### assertion

- `ok(&block)`
- `error(class_or_message=nil, message=nil, &block)`

### run test

- `Testa.run!`
- `Testa.autorun` in `some-test.rb` and `ruby some-test.rb`