Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A BDD testing framework for Io

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 README.mkd
Octocat-spinner-32 index.html
Octocat-spinner-32 install.io
Octocat-spinner-32 todo
Octocat-spinner-32 willful
README.mkd

Willful

Simple behavior driven testing in Io.


Install

git clone https://github.com/benmills/willful.git
cd willful
io install.io

Write

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.

$ willful foo-test.io
=> Running Willful tests        
 - Testing Foo                  
   . 1/1 Passed                 

Projects using Willful

Something went wrong with that request. Please try again.