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
- Host: GitHub
- URL: https://github.com/v2e4lisp/testa
- Owner: v2e4lisp
- License: mit
- Created: 2014-06-17T17:13:27.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-24T07:59:24.000Z (almost 12 years ago)
- Last Synced: 2025-03-05T15:24:24.095Z (over 1 year ago)
- Language: Ruby
- Size: 203 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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`