Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
/ ooc-bdd Public archive

Pretend you're a Rubyist with BDD for ooc

Notifications You must be signed in to change notification settings

wandernauta/ooc-bdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ooc-bdd

Build Status

ooc-bdd is a BDD-style testing library for the ooc language. It uses a testing syntax similar to the one Jasmine uses. It allows for tests (and output) that almost read like prose:

import bdd

describe("A string 'llama'", ||
    it("should not be 'alpaca'", ||
        expect("llama") not toBe("alpaca")
    )

    it("should match ^[a-m]+$", ||
        expect("llama") toMatch("^[a-m]+$")
    )
)

See (and run!) the test.ooc file for more examples.

Features

  • BDD-style syntax with expect()
  • Assertion-style syntax with require()
  • Invert expectations with not
  • Nicely colored output
  • Tallying of passed and failed tests and timing included
  • Put any code in your tests and specs.
  • Nested specs supported

License

ooc-bdd is distributed under the terms of the ISC license.

About

Pretend you're a Rubyist with BDD for ooc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages