Skip to content

benmills/willful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A BDD testing framework for Io

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages