Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benmills/willful
A BDD testing framework for Io
https://github.com/benmills/willful
Last synced: about 1 month ago
JSON representation
A BDD testing framework for Io
- Host: GitHub
- URL: https://github.com/benmills/willful
- Owner: benmills
- Created: 2011-08-18T02:14:45.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-18T19:23:23.000Z (almost 13 years ago)
- Last Synced: 2024-04-17T02:56:30.821Z (7 months ago)
- Language: Io
- Homepage: benmills.org/willful
- Size: 135 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.mkd
Awesome Lists containing this project
README
Willful
============Simple behavior driven testing in Io.
------------
### Install
```bash
git clone https://github.com/benmills/willful.git
cd willful
io install.io
```### Write
```io
doFile(System ioPath .. "/willful.io")
Foo := Object clone do( bar := method("bar"))describe("Foo",
it("Will bar",
f := Foo clone
f bar will == "bar"
f bar will != "baz"
f bar will beOk
)
)
```### Run
The `willful` command will look for any file with a name containing `-test` and attempt to run them. You can also explicitly tell it what to run by passing any number of files or directories.
```bash
$ willful foo-test.io
=> Running Willful tests
- Testing Foo
. 1/1 Passed
```--------------------
### Projects using Willful
* [JoshCheek](https://github.com/JoshCheek)'s [tt-io](https://github.com/JoshCheek/ttt-io)